|
|
@ -109,7 +109,7 @@ public class GroupManagementServiceImpl implements GroupManagementService {
|
|
|
|
log.error(msg, e);
|
|
|
|
log.error(msg, e);
|
|
|
|
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();
|
|
|
|
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();
|
|
|
|
} catch (GroupAlreadyExistException e) {
|
|
|
|
} catch (GroupAlreadyExistException e) {
|
|
|
|
String msg = "Group already exists with name '" + group.getName() + "'.";
|
|
|
|
String msg = "Group already exists with name \'" + group.getName() + "\'.";
|
|
|
|
log.warn(msg);
|
|
|
|
log.warn(msg);
|
|
|
|
return Response.status(Response.Status.CONFLICT).entity(msg).build();
|
|
|
|
return Response.status(Response.Status.CONFLICT).entity(msg).build();
|
|
|
|
}
|
|
|
|
}
|
|
|
|