Skip to content
Snippets Groups Projects
Commit 5fb8f5a8 authored by syuilo's avatar syuilo
Browse files

Improve error message

parent 1673957a
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
}
if (object.type != 'Person' && object.type != 'Service') {
throw new Error('invalid person: object is not a person or service');
throw new Error(`invalid person: object is not a person or service '${object.type}'`);
}
if (typeof object.preferredUsername !== 'string') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment