mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
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());
|
info = fetchFeedInternal(req.getUrl());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Throwable cause = Throwables.getRootCause(e);
|
Throwable cause = Throwables.getRootCause(e);
|
||||||
return Response.status(Status.INTERNAL_SERVER_ERROR)
|
return Response.status(Status.INTERNAL_SERVER_ERROR).entity(cause.getMessage()).type(MediaType.TEXT_PLAIN).build();
|
||||||
.entity(cause.getClass().getName() + ": " + cause.getMessage())
|
|
||||||
.type(MediaType.TEXT_PLAIN)
|
|
||||||
.build();
|
|
||||||
}
|
}
|
||||||
return Response.ok(info).build();
|
return Response.ok(info).build();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user