Better error

This commit is contained in:
syuilo 2019-07-22 10:18:27 +09:00
parent 4f043b1841
commit 29469bb7c6
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ export default async (ctx: Koa.BaseContext) => {
host: null
});
if (exist) throw 'already registered';
if (exist) throw new Error(' the username is already used');
account = await transactionalEntityManager.save(new User({
id: genId(),