Skip to content

Commit c64af32

Browse files
enhance JSON processing error message
1 parent c890485 commit c64af32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/cucumber/tutorial/util/PlainHttpResponseUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static PlainHttpResponse from(String content) {
3131
try {
3232
return mapper.readValue(content, PlainHttpResponse.class);
3333
} catch (JsonProcessingException e) {
34-
throw new RuntimeException(e);
34+
throw new RuntimeException("Cannot convert to PlainHttpResponse object:\n" + content, e);
3535
}
3636
}
3737

0 commit comments

Comments
 (0)