Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion java/src/org/openqa/selenium/remote/RemoteWebDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,14 @@ protected Response execute(CommandPayload payload) {
if (e instanceof SessionNotCreatedException) {
toThrow = (WebDriverException) e;
} else {
// When this exception comes from a remote end, the real cause is usually hidden in the
// cause. Let's try to rescue it and display it at the top level.
String cause = e.getCause() != null ? " " + e.getCause().getMessage() : "";
toThrow =
new SessionNotCreatedException(
"Possible causes are invalid address of the remote server or browser start-up"
+ " failure.",
+ " failure."
+ cause,
e);
}
} else if (e instanceof WebDriverException) {
Expand Down
Loading