Skip to content

Commit

Permalink
Add cause when JsonException occurs (#6112)
Browse files Browse the repository at this point in the history
  • Loading branch information
f-lopes authored and shs96c committed Jul 10, 2018
1 parent 550cd0c commit f54e39a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private Optional<Result> createSession(HttpClient client, InputStream newSession
blob = new Json().toType(response.getContentString(), Map.class);
} catch (JsonException e) {
throw new WebDriverException(
"Unable to parse remote response: " + response.getContentString());
"Unable to parse remote response: " + response.getContentString(), e);
}

InitialHandshakeResponse initialResponse = new InitialHandshakeResponse(
Expand Down

0 comments on commit f54e39a

Please sign in to comment.