mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 23:51:01 -07:00
Better error
This commit is contained in:
parent
05dade03b7
commit
3a3d1297e0
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue