Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

JsonRpcError decoding to include message #1336

Merged
merged 2 commits into from
Apr 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public String getMessage() {
public static JsonRpcError fromJson(
@JsonProperty("code") final int code, @JsonProperty("message") final String message) {
for (final JsonRpcError error : JsonRpcError.values()) {
if (error.getCode() == code) {
if (error.code == code && error.message.equals(message)) {
return error;
}
}
Expand Down