1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-02 16:58:11 +09:00
This commit is contained in:
syuilo 2018-04-09 05:30:17 +09:00
parent 1186b788d6
commit 44e5ae110e

View File

@ -51,6 +51,7 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
!isValidName(object.name == '' ? null : object.name) ||
!isValidDescription(object.summary)
) {
log(`invalid person: ${JSON.stringify(object, null, 2)}`);
throw new Error('invalid person');
}