mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Merge pull request #470 from hasuniea/release-3.0.x
fixing message issue in configurationmgtservice
This commit is contained in:
commit
6cea2f19fc
@ -81,7 +81,7 @@ public class ConfigurationMgtServiceImpl implements ConfigurationMgtService {
|
|||||||
platformConfiguration.setConfiguration(configs);
|
platformConfiguration.setConfiguration(configs);
|
||||||
}
|
}
|
||||||
} catch (DeviceManagementException e) {
|
} catch (DeviceManagementException e) {
|
||||||
msg = "Error occurred while retrieving the Android tenant configuration";
|
msg = "Error occurred while retrieving the Windows tenant configuration";
|
||||||
log.error(msg, e);
|
log.error(msg, e);
|
||||||
throw new UnexpectedServerErrorException(
|
throw new UnexpectedServerErrorException(
|
||||||
new ErrorResponse.ErrorResponseBuilder().setCode(500l).setMessage(msg).build());
|
new ErrorResponse.ErrorResponseBuilder().setCode(500l).setMessage(msg).build());
|
||||||
@ -129,7 +129,8 @@ public class ConfigurationMgtServiceImpl implements ConfigurationMgtService {
|
|||||||
throw new UnexpectedServerErrorException(
|
throw new UnexpectedServerErrorException(
|
||||||
new ErrorResponse.ErrorResponseBuilder().setCode(500l).setMessage(message).build());
|
new ErrorResponse.ErrorResponseBuilder().setCode(500l).setMessage(message).build());
|
||||||
}
|
}
|
||||||
return Response.status(Response.Status.OK).entity("Android platform configuration has been updated successfully.").build();
|
return Response.status(Response.Status.OK).
|
||||||
|
entity("Windows platform configuration has been updated successfully.").build();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user