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

Commit

Permalink
Log error when a JSON decode problem is encountered (#1278)
Browse files Browse the repository at this point in the history
  • Loading branch information
CjHare authored Apr 15, 2019
1 parent ec452c3 commit 0edb306
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@ private JsonRpcResponse process(final JsonObject requestJson, final Optional<Use
} catch (final InvalidJsonRpcParameters e) {
LOG.debug(e);
return errorResponse(id, JsonRpcError.INVALID_PARAMS);
} catch (final RuntimeException e) {
LOG.debug(e);
return errorResponse(id, JsonRpcError.INTERNAL_ERROR);
}
} else {
return unauthorizedResponse(id, JsonRpcError.UNAUTHORIZED);
Expand Down

0 comments on commit 0edb306

Please sign in to comment.