mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'master' into 'master'
Improve response message of app retiring API See merge request entgra/carbon-device-mgt!522
This commit is contained in:
commit
4d2821d7a7
@ -196,10 +196,10 @@ public class ApplicationManagementPublisherAdminAPIImpl implements ApplicationMa
|
|||||||
try {
|
try {
|
||||||
applicationManager.retireApplication(applicationId);
|
applicationManager.retireApplication(applicationId);
|
||||||
return Response.status(Response.Status.OK)
|
return Response.status(Response.Status.OK)
|
||||||
.entity("Successfully deleted the application for application ID: " + applicationId).build();
|
.entity("Successfully retired the application which has application ID: " + applicationId).build();
|
||||||
} catch (NotFoundException e) {
|
} catch (NotFoundException e) {
|
||||||
String msg =
|
String msg = "Couldn't found application for application id: " + applicationId + " to delete the "
|
||||||
"Couldn't found application for application id: " + applicationId + " to delete the application";
|
+ "application";
|
||||||
log.error(msg, e);
|
log.error(msg, e);
|
||||||
return Response.status(Response.Status.NOT_FOUND).entity(msg).build();
|
return Response.status(Response.Status.NOT_FOUND).entity(msg).build();
|
||||||
} catch (ForbiddenException e) {
|
} catch (ForbiddenException e) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user