Skip to content

Commit aa2e084

Browse files
committed
Code improvement, thanks to @valfirst
1 parent 5fc660e commit aa2e084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/src/org/openqa/selenium/remote/RemoteWebDriver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,11 +574,11 @@ protected Response execute(CommandPayload payload) {
574574
} else {
575575
// When this exception comes from a remote end, the real cause is usually hidden in the
576576
// cause. Let's try to rescue it and display it at the top level.
577-
String cause = e.getCause() != null ? e.getCause().getMessage() : "";
577+
String cause = e.getCause() != null ? " " + e.getCause().getMessage() : "";
578578
toThrow =
579579
new SessionNotCreatedException(
580580
"Possible causes are invalid address of the remote server or browser start-up"
581-
+ " failure. "
581+
+ " failure."
582582
+ cause,
583583
e);
584584
}

0 commit comments

Comments
 (0)