diff --git a/java/src/org/openqa/selenium/remote/service/DriverService.java b/java/src/org/openqa/selenium/remote/service/DriverService.java index 0e0c04f693d9c..87d7e7cb75d61 100644 --- a/java/src/org/openqa/selenium/remote/service/DriverService.java +++ b/java/src/org/openqa/selenium/remote/service/DriverService.java @@ -242,8 +242,10 @@ public void start() throws IOException { processFinished.cancel(true); break; case PROCESS_DIED: + int exitValue = process.exitValue(); process = null; - throw new WebDriverException("Driver server process died prematurely."); + throw new WebDriverException( + "Driver server process died prematurely, exit value: " + exitValue); case PROCESS_IS_ACTIVE: process.shutdown(); throw new WebDriverException("Timed out waiting for driver server to bind the port.");