Skip to content

Commit bba8403

Browse files
committed
If the JSON was invalid, set the text as the response's message
1 parent ce23e07 commit bba8403

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/creatubbles/api/core/CreatubblesRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ public T getResponse() {
172172
if (creatubblesResponse == null) {
173173
try {
174174
creatubblesResponse = responseClass.newInstance();
175+
creatubblesResponse.message = json;
175176
} catch (Exception e) {
176177
Throwables.propagate(e);
177178
}

0 commit comments

Comments
 (0)