mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 16:36:43 -06:00
Improve error message
This commit is contained in:
parent
1673957aa6
commit
5fb8f5a8c7
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