Skip to content

Commit d69beb6

Browse files
committed
improvement
1 parent 3879d5f commit d69beb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function verifyUser(user, schema, schemaExtensions = []) {
1414
coreOrDefaultAttributes.forEach(attr => {
1515
assert.ok(
1616
schemaAttributes.includes(attr) || schemas.includes(attr) || ['schemas', 'id', 'meta'].includes(attr),
17-
`User contains attribute not defined in schema: ${attr}`
17+
`User contains attribute not defined in schema: ${attr}. Check schema ${schema.id} and extensions ${schemaExtensions.map(ext => ext.id).join(', ')}`
1818
);
1919
});
2020
}

0 commit comments

Comments
 (0)