mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Adding descriptive error message
This commit is contained in:
parent
fe30a05b81
commit
a7e41faa19
@ -490,7 +490,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
|||||||
deviceInfo = informationManager.getDeviceInfo(deviceIdentifier);
|
deviceInfo = informationManager.getDeviceInfo(deviceIdentifier);
|
||||||
|
|
||||||
} catch (DeviceDetailsMgtException e) {
|
} catch (DeviceDetailsMgtException e) {
|
||||||
String msg = "Error occurred while getting the device information.";
|
String msg = "Error occurred while getting the device information of id : " + id + " type : " + type ;
|
||||||
log.error(msg, e);
|
log.error(msg, e);
|
||||||
return Response.serverError().entity(
|
return Response.serverError().entity(
|
||||||
new ErrorResponse.ErrorResponseBuilder().setMessage(msg).build()).build();
|
new ErrorResponse.ErrorResponseBuilder().setMessage(msg).build()).build();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user