fix subscription error handling

This commit is contained in:
Athou
2014-11-21 10:06:48 +01:00
parent 10461941d7
commit 18aa2fcd92

View File

@@ -268,7 +268,7 @@ public class FeedREST {
info = fetchFeedInternal(req.getUrl()); info = fetchFeedInternal(req.getUrl());
} catch (Exception e) { } catch (Exception e) {
return Response.status(Status.INTERNAL_SERVER_ERROR).entity(Throwables.getStackTraceAsString(Throwables.getRootCause(e))) return Response.status(Status.INTERNAL_SERVER_ERROR).entity(Throwables.getStackTraceAsString(Throwables.getRootCause(e)))
.build(); .type(MediaType.TEXT_PLAIN).build();
} }
return Response.ok(info).build(); return Response.ok(info).build();
} }