additional debug info

This commit is contained in:
Athou
2013-04-17 10:51:24 +02:00
parent 5ab2d3739d
commit ff5d77adaf

View File

@@ -181,8 +181,10 @@ public abstract class AbstractREST {
.getBasePath(applicationSettingsService.get().getPublicUrl()); .getBasePath(applicationSettingsService.get().getPublicUrl());
Api api = getClass().getAnnotation(Api.class); Api api = getClass().getAnnotation(Api.class);
if (api == null) { if (api == null) {
return Response.status(Status.NOT_FOUND) return Response
.entity("Api annotation not found").build(); .status(Status.NOT_FOUND)
.entity("Api annotation not found on class "
+ getClass().getName()).build();
} }
String apiPath = api.value(); String apiPath = api.value();
String apiListingPath = api.value(); String apiListingPath = api.value();