throw "string" -> throw new Error("string"

This commit is contained in:
2020-09-16 17:37:22 +00:00
parent 3dc5f8134c
commit f67379f83f
31 changed files with 195 additions and 151 deletions

View File

@@ -108,7 +108,9 @@ export default {
//Get the AyaNova stock REQUIRED role rights for that object
let objectRoleRights = this.ROLE_RIGHTS[typeName];
if (!objectRoleRights) {
throw `authorizationroles::getRights type ${oType} not found in roles collection`;
throw new Error(
`authorizationroles::getRights type ${oType} not found in roles collection`
);
}
//get the logged in user's role