Skip to content

Commit

Permalink
JsonRpcError decoding to include message (PegaSysEng#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
CjHare authored and notlesh committed May 4, 2019
1 parent 04be323 commit 80e1c50
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 80e1c50

Please sign in to comment.