Skip to content

Commit

Permalink
Log unexpected exceptions in execution engine rpc (hyperledger#4222)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
  • Loading branch information
siladu authored Aug 5, 2022
1 parent 8f89580 commit b02ae70
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ public final JsonRpcResponse response(final JsonRpcRequestContext request) {
try {
return cf.get();
} catch (InterruptedException e) {
LOG.error("Failed to get execution engine response", e);
return new JsonRpcErrorResponse(request.getRequest().getId(), JsonRpcError.TIMEOUT_ERROR);
} catch (ExecutionException e) {
LOG.error("Failed to get execution engine response", e);
return new JsonRpcErrorResponse(request.getRequest().getId(), JsonRpcError.INTERNAL_ERROR);
}
}
Expand Down

0 comments on commit b02ae70

Please sign in to comment.