Skip to content

Commit a6405d4

Browse files
committed
[java] Showing SM error when the exception is thrown
1 parent aa68cb1 commit a6405d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/src/org/openqa/selenium/remote/service/DriverFinder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ public static Result getPath(DriverService service, Capabilities options, boolea
2121
try {
2222
result = SeleniumManager.getInstance().getDriverPath(options, offline);
2323
} catch (Exception e) {
24-
throw new NoSuchDriverException(String.format("Unable to obtain: %s", options), e);
24+
throw new NoSuchDriverException(
25+
String.format("Unable to obtain: %s, error %s", options, e.getMessage()), e);
2526
}
2627
}
2728

0 commit comments

Comments
 (0)