Skip to content

Commit f54e39a

Browse files
f-lopesshs96c
authored andcommitted
Add cause when JsonException occurs (#6112)
1 parent 550cd0c commit f54e39a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/remote/ProtocolHandshake.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private Optional<Result> createSession(HttpClient client, InputStream newSession
108108
blob = new Json().toType(response.getContentString(), Map.class);
109109
} catch (JsonException e) {
110110
throw new WebDriverException(
111-
"Unable to parse remote response: " + response.getContentString());
111+
"Unable to parse remote response: " + response.getContentString(), e);
112112
}
113113

114114
InitialHandshakeResponse initialResponse = new InitialHandshakeResponse(

0 commit comments

Comments
 (0)