From 2692c40467869af327d5813c584de98ab9075a28 Mon Sep 17 00:00:00 2001 From: Yohan Avishke Date: Fri, 20 Dec 2019 11:08:09 +0530 Subject: [PATCH] Update response messages --- .../impl/AnalyticsArtifactsManagementServiceImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/AnalyticsArtifactsManagementServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/AnalyticsArtifactsManagementServiceImpl.java index a73baa90cb..2958d5b3a0 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/AnalyticsArtifactsManagementServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/AnalyticsArtifactsManagementServiceImpl.java @@ -89,11 +89,13 @@ public class AnalyticsArtifactsManagementServiceImpl return Response.serverError().entity(errMsg).build(); } } catch (ArtifactAlreadyExistsException e) { - String errMsg = "Failed to create Stream artifact for tenant domain: " + tenantDomain; + String errMsg = "Failed to create Stream artifact for tenant domain: " + tenantDomain + + "Stream with id: "+ id + "already exists"; log.error(errMsg, e); return Response.status(Response.Status.BAD_REQUEST).entity(errMsg).build(); } catch (NotFoundException e) { - String errMsg = "Failed to edit Stream artifact for tenant domain: " + tenantDomain; + String errMsg = "Failed to edit Stream artifact for tenant domain: " + tenantDomain + + "Stream with id: "+ id + "doesn't exist"; log.error(errMsg, e); return Response.status(Response.Status.NOT_FOUND).entity(errMsg).build(); } catch (AxisFault e) {