mirror of
https://github.com/Athou/commafeed.git
synced 2026-09-20 19:51:09 +00:00
fix error message not correctly returned
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user