diff --git a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/AndroidSenseServiceImpl.java b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/AndroidSenseServiceImpl.java index 9f2ab2da5..a1307dfa6 100644 --- a/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/AndroidSenseServiceImpl.java +++ b/components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/AndroidSenseServiceImpl.java @@ -79,7 +79,7 @@ public class AndroidSenseServiceImpl implements AndroidSenseService { deviceIdentifiers); return Response.ok().build(); } catch (InvalidDeviceException e) { - String msg = "Error occurred while executing command operation to send keywords"; + String msg = "Invalid Device Identifiers found."; log.error(msg, e); return Response.status(Response.Status.BAD_REQUEST).build(); } catch (DeviceAccessAuthorizationException e) { @@ -119,7 +119,7 @@ public class AndroidSenseServiceImpl implements AndroidSenseService { deviceIdentifiers); return Response.ok().build(); } catch (InvalidDeviceException e) { - String msg = "Error occurred while executing command operation to send keywords"; + String msg = "Invalid Device Identifiers found."; log.error(msg, e); return Response.status(Response.Status.BAD_REQUEST).build(); } catch (DeviceAccessAuthorizationException e) { @@ -158,7 +158,7 @@ public class AndroidSenseServiceImpl implements AndroidSenseService { deviceIdentifiers); return Response.ok().build(); } catch (InvalidDeviceException e) { - String msg = "Error occurred while executing command operation to send keywords"; + String msg = "Invalid Device Identifiers found."; log.error(msg, e); return Response.status(Response.Status.BAD_REQUEST).build(); } catch (DeviceAccessAuthorizationException e) { diff --git a/components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.api/src/main/java/org/wso2/carbon/device/mgt/iot/arduino/service/impl/ArduinoServiceImpl.java b/components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.api/src/main/java/org/wso2/carbon/device/mgt/iot/arduino/service/impl/ArduinoServiceImpl.java index ca709ddd6..b8ad08569 100644 --- a/components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.api/src/main/java/org/wso2/carbon/device/mgt/iot/arduino/service/impl/ArduinoServiceImpl.java +++ b/components/iot-plugins/arduino-plugin/org.wso2.carbon.device.mgt.iot.arduino.api/src/main/java/org/wso2/carbon/device/mgt/iot/arduino/service/impl/ArduinoServiceImpl.java @@ -80,7 +80,7 @@ public class ArduinoServiceImpl implements ArduinoService { deviceIdentifiers); return Response.status(Response.Status.OK.getStatusCode()).build(); } catch (InvalidDeviceException e) { - String msg = "Error occurred while executing command operation to send keywords"; + String msg = "Invalid Device Identifiers found."; log.error(msg, e); return Response.status(Response.Status.BAD_REQUEST).build(); } catch (DeviceAccessAuthorizationException e) { diff --git a/components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.api/src/main/java/org/wso2/carbon/device/mgt/iot/raspberrypi/service/impl/RaspberryPiServiceImpl.java b/components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.api/src/main/java/org/wso2/carbon/device/mgt/iot/raspberrypi/service/impl/RaspberryPiServiceImpl.java index 36347ab6a..86787a2b8 100644 --- a/components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.api/src/main/java/org/wso2/carbon/device/mgt/iot/raspberrypi/service/impl/RaspberryPiServiceImpl.java +++ b/components/iot-plugins/raspberrypi-plugin/org.wso2.carbon.device.mgt.iot.raspberrypi.api/src/main/java/org/wso2/carbon/device/mgt/iot/raspberrypi/service/impl/RaspberryPiServiceImpl.java @@ -91,7 +91,7 @@ public class RaspberryPiServiceImpl implements RaspberryPiService { deviceIdentifiers); return Response.ok().build(); } catch (InvalidDeviceException e) { - String msg = "Error occurred while executing command operation to send keywords"; + String msg = "Invalid Device Identifiers found."; log.error(msg, e); return Response.status(Response.Status.BAD_REQUEST).build(); } catch (DeviceAccessAuthorizationException e) {