Skip to content

Commit

Permalink
Corretta eccezione
Browse files Browse the repository at this point in the history
  • Loading branch information
gifracr committed Jan 31, 2017
1 parent 2911f2c commit 671d240
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -142,6 +142,6 @@ public Response toResponse(Exception exception) {
if (exception.getCause() instanceof RestException)
return Response.status(((RestException)exception.getCause()).getStatus()).entity(((RestException)exception.getCause()).getErrorMap()).build();
LOGGER.error("ERROR for REST SERVICE", exception);
return Response.status(Status.BAD_REQUEST).entity(exception).build();
return Response.status(Status.INTERNAL_SERVER_ERROR).entity(exception).build();
}
}

0 comments on commit 671d240

Please sign in to comment.