Fix readable issue in error message

rm-10378
Pramila Niroshan 11 months ago
parent 451b7a292e
commit 8d2207667c

@ -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();
}

Loading…
Cancel
Save