From 8d2207667c8b47539d0a5fbe740b58aa22df5969 Mon Sep 17 00:00:00 2001 From: pramilaniroshan Date: Mon, 18 Dec 2023 13:21:34 +0530 Subject: [PATCH] Fix readable issue in error message --- .../api/jaxrs/service/impl/DeviceStatusFilterServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/service/impl/DeviceStatusFilterServiceImpl.java b/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/service/impl/DeviceStatusFilterServiceImpl.java index 256b7d74f0..56da3a1132 100644 --- a/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/service/impl/DeviceStatusFilterServiceImpl.java +++ b/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/service/impl/DeviceStatusFilterServiceImpl.java @@ -109,9 +109,9 @@ public class DeviceStatusFilterServiceImpl implements DeviceStatusFilterService try { DeviceStatusManagementService deviceManagementProviderService = DeviceMgtAPIUtils.getDeviceStatusManagmentService(); deviceManagementProviderService.updateDefaultDeviceStatusFilters(tenantId, deviceType, deviceStatus); - return Response.status(Response.Status.OK).entity("Successfully updated device status filters for" + deviceType).build(); + return Response.status(Response.Status.OK).entity("Successfully updated device status filters for " + deviceType).build(); } catch (MetadataManagementException e) { - String msg = "Error occurred while updating device status for" + deviceType; + String msg = "Error occurred while updating device status for " + deviceType; log.error(msg, e); return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build(); }