mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
Better error
This commit is contained in:
parent
05dade03b7
commit
3a3d1297e0
@ -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 New Issue
Block a user