forked from Archives/Athou_commafeed
remove "jakarta.ws.rs.WebApplicationException" from the errors displayed in the client
This commit is contained in:
@@ -264,10 +264,7 @@ public class FeedREST {
|
||||
info = fetchFeedInternal(req.getUrl());
|
||||
} catch (Exception e) {
|
||||
Throwable cause = Throwables.getRootCause(e);
|
||||
return Response.status(Status.INTERNAL_SERVER_ERROR)
|
||||
.entity(cause.getClass().getName() + ": " + cause.getMessage())
|
||||
.type(MediaType.TEXT_PLAIN)
|
||||
.build();
|
||||
return Response.status(Status.INTERNAL_SERVER_ERROR).entity(cause.getMessage()).type(MediaType.TEXT_PLAIN).build();
|
||||
}
|
||||
return Response.ok(info).build();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user