Skip to content

Commit

Permalink
[java] Showing SM error when the exception is thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Jul 31, 2023
1 parent aa68cb1 commit a6405d4
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -21,7 +21,8 @@ public static Result getPath(DriverService service, Capabilities options, boolea
try {
result = SeleniumManager.getInstance().getDriverPath(options, offline);
} catch (Exception e) {
throw new NoSuchDriverException(String.format("Unable to obtain: %s", options), e);
throw new NoSuchDriverException(
String.format("Unable to obtain: %s, error %s", options, e.getMessage()), e);
}
}

Expand Down

0 comments on commit a6405d4

Please sign in to comment.