Skip to content

Commit 60bf6d3

Browse files
committed
Add all tests
1 parent f285f1a commit 60bf6d3

File tree

2 files changed

+430
-3
lines changed

2 files changed

+430
-3
lines changed

src/main/java/com/yocto/yoclib/jsonrpc/Message.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public Object getErrorData() {
9999
if (error instanceof JSONObject) {
100100
JSONObject errorObj = (JSONObject) error;
101101
if (errorObj.has("data")) {
102-
return errorObj.getInt("data");
102+
return errorObj.get("data");
103103
}
104104
}
105105
return null;

0 commit comments

Comments
 (0)