Skip to content

Commit

Permalink
feat: update error message (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras authored Aug 22, 2024
1 parent 6f174ed commit d4a0730
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public ErrorStatusUpdateControl<KeycloakClient> updateErrorStatus(KeycloakClient
String message = e.getMessage();
if (e.getCause() instanceof WebApplicationException re) {
responseCode = re.getResponse().getStatus();
message = re.getMessage();
message = re.getResponse().readEntity(String.class);
}
if (e.getCause() instanceof TypeNotSupportedException tnse) {
// set the response code as 500 INTERNAL Server error
Expand Down

0 comments on commit d4a0730

Please sign in to comment.