remove "jakarta.ws.rs.WebApplicationException" from the errors displayed in the client

This commit is contained in:
Athou
2025-02-19 13:08:43 +01:00
parent 42138d04d6
commit 0db087908d

View File

@@ -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();
}