1
0
Fork 1
mirror of https://example.com synced 2024-11-23 21:16:39 +09:00

Better error

This commit is contained in:
syuilo 2019-07-22 10:18:27 +09:00
parent 4f043b1841
commit 29469bb7c6

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(),