Skip to content

Commit 94b73e9

Browse files
committed
fix(logging): log better details of permission config errors
1 parent 232e983 commit 94b73e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/core/permissions/ability/entity-ability.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class EntityAbility extends Ability<[EntityAction, string | any]> {
6666
} else if (entity.ENTITY_TYPE) {
6767
return entity.ENTITY_TYPE;
6868
} else {
69-
throw new Error(`${entity} is not a valid subject`);
69+
throw new Error(`${JSON.stringify(entity)} is not a valid subject`);
7070
}
7171
}
7272
}

0 commit comments

Comments
 (0)