From f1fbdf1f3b2159bf67eb5ad2f73361a060efc8c9 Mon Sep 17 00:00:00 2001 From: "tcdlpds@gmail.com" Date: Tue, 28 Apr 2020 07:27:54 +0530 Subject: [PATCH] Improve response message of app retiring API --- .../admin/ApplicationManagementPublisherAdminAPIImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/impl/admin/ApplicationManagementPublisherAdminAPIImpl.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/impl/admin/ApplicationManagementPublisherAdminAPIImpl.java index e330a742e1..8e739f1602 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/impl/admin/ApplicationManagementPublisherAdminAPIImpl.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.api/src/main/java/org/wso2/carbon/device/application/mgt/publisher/api/services/impl/admin/ApplicationManagementPublisherAdminAPIImpl.java @@ -196,10 +196,10 @@ public class ApplicationManagementPublisherAdminAPIImpl implements ApplicationMa try { applicationManager.retireApplication(applicationId); return Response.status(Response.Status.OK) - .entity("Successfully deleted the application for application ID: " + applicationId).build(); + .entity("Successfully retired the application which has application ID: " + applicationId).build(); } catch (NotFoundException e) { - String msg = - "Couldn't found application for application id: " + applicationId + " to delete the application"; + String msg = "Couldn't found application for application id: " + applicationId + " to delete the " + + "application"; log.error(msg, e); return Response.status(Response.Status.NOT_FOUND).entity(msg).build(); } catch (ForbiddenException e) {