Skip to content

Commit

Permalink
[java] include the exit code to the error message of a failed driver …
Browse files Browse the repository at this point in the history
…startup
  • Loading branch information
joerg1985 committed Dec 8, 2024
1 parent 623c4aa commit cc58a4e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit cc58a4e

Please sign in to comment.