diff --git a/micro-application-register/src/main/java/com/oath/micro/server/application/registry/ServiceRegistryResource.java b/micro-application-register/src/main/java/com/oath/micro/server/application/registry/ServiceRegistryResource.java index 5ae4280a..471444b4 100644 --- a/micro-application-register/src/main/java/com/oath/micro/server/application/registry/ServiceRegistryResource.java +++ b/micro-application-register/src/main/java/com/oath/micro/server/application/registry/ServiceRegistryResource.java @@ -49,7 +49,7 @@ public void list(@Context UriInfo uriInfo, @Suspended AsyncResponse response) { response.resume(finder.find(UriInfoParser.toRegisterEntry(uriInfo))); } catch (Exception e) { logger.error("list failed with error: {}", e.getMessage(), e); - response.resume(e); + response.resume(Arrays.asList("Bad Request: " + e.getMessage())); } })); }