mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 23:51:01 -07:00
Improve error message
This commit is contained in:
parent
ee6a52dc30
commit
639aa8197a
1 changed files with 1 additions and 1 deletions
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue