fix error message not correctly returned

This commit is contained in:
Athou
2026-04-20 08:39:05 +02:00
parent 7df930bccc
commit da3977b0e2

View File

@@ -424,7 +424,7 @@ public class FeedREST {
try {
feedEntryFilteringService.filterMatchesEntry(req.getFilter(), TEST_ENTRY);
} catch (FeedEntryFilterException e) {
return Response.status(Status.BAD_REQUEST).entity(e.getCause().getMessage()).type(MediaType.TEXT_PLAIN).build();
return Response.status(Status.BAD_REQUEST).entity(e.getMessage()).type(MediaType.TEXT_PLAIN).build();
}
User user = authenticationContext.getCurrentUser();