diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/GroupManagementProviderServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/GroupManagementProviderServiceImpl.java index 1753f9696ab..d4f462b1bc1 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/GroupManagementProviderServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/GroupManagementProviderServiceImpl.java @@ -392,7 +392,7 @@ public class GroupManagementProviderServiceImpl implements GroupManagementProvid rolesToAdd.add(roleNamePrefix + role); } } else { - throw new RoleDoesNotExistException("Role '" + role + "' is not exists iin requested group."); + throw new RoleDoesNotExistException("Role '" + role + "' is not exists in requested group."); } } for (String role : currentUserRoles) { @@ -401,7 +401,7 @@ public class GroupManagementProviderServiceImpl implements GroupManagementProvid rolesToRemove.add(roleNamePrefix + role); } } else { - throw new RoleDoesNotExistException("Role '" + role + "' is not exists iin requested group."); + throw new RoleDoesNotExistException("Role '" + role + "' is not exists in requested group."); } } userStoreManager.updateRoleListOfUser(username,