Skip to content

Commit

Permalink
MODPATRON-156 revert redundant changes
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-barannyk committed Jun 11, 2024
1 parent 8c4c6f6 commit 47441ff
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,7 @@ private Future<javax.ws.rs.core.Response> handleError(Throwable throwable) {
result = succeededFuture(GetPatronAccountByIdResponse.respond404WithTextPlain(message));
break;
default:
result = succeededFuture(PostPatronAccountInstanceHoldByIdAndInstanceIdResponse.respond422WithApplicationJson(
Json.decodeValue(message, Errors.class)));
result = succeededFuture(GetPatronAccountByIdResponse.respond500WithTextPlain(message));
}
} else {
result = succeededFuture(GetPatronAccountByIdResponse.respond500WithTextPlain(throwable.getMessage()));
Expand Down

0 comments on commit 47441ff

Please sign in to comment.