mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 18:03:10 +02:00
Better error
This commit is contained in:
parent
4f043b1841
commit
29469bb7c6
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ export default async (ctx: Koa.BaseContext) => {
|
||||||
host: null
|
host: null
|
||||||
});
|
});
|
||||||
|
|
||||||
if (exist) throw 'already registered';
|
if (exist) throw new Error(' the username is already used');
|
||||||
|
|
||||||
account = await transactionalEntityManager.save(new User({
|
account = await transactionalEntityManager.save(new User({
|
||||||
id: genId(),
|
id: genId(),
|
||||||
|
|
Loading…
Reference in a new issue