Add cause when JsonException occurs
@@ -108,7 +108,7 @@ public Result createSession(HttpClient client, Command command)
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(
