return a more explicit error message (fix #723)

This commit is contained in:
Athou
2015-04-24 16:14:18 +02:00
parent 4d71a8f3c2
commit fee3e10e6b

View File

@@ -436,8 +436,7 @@ public class FeedREST {
try {
feedEntryFilteringService.filterMatchesEntry(req.getFilter(), TEST_ENTRY);
} catch (FeedEntryFilterException e) {
Throwable root = Throwables.getRootCause(e);
return Response.status(Status.BAD_REQUEST).entity(root.getMessage()).type(MediaType.TEXT_PLAIN).build();
return Response.status(Status.BAD_REQUEST).entity(e.getCause().getMessage()).type(MediaType.TEXT_PLAIN).build();
}
FeedSubscription subscription = feedSubscriptionDAO.findById(user, req.getId());