From 5267a58933d0bc3e2fee00723ba275f27a5fd587 Mon Sep 17 00:00:00 2001 From: jijisv Date: Wed, 16 Sep 2020 14:11:48 +0100 Subject: [PATCH] revert back list response --- .../server/application/registry/ServiceRegistryResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); } })); }