Minor style cleanups; use APIError for unhandled exceptions.
@@ -109,7 +109,8 @@ public class RESTExceptionMapper implements ExceptionMapper<Throwable> {
return Response
.status(Response.Status.INTERNAL_SERVER_ERROR)
- .entity("Unexpected Internal Error.")
+ .entity(new APIError(
+ new GuacamoleException("Unexpected internal error", t)))
.type(MediaType.APPLICATION_JSON)
.build();
