summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/api/private/signup.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/private/signup.ts b/src/server/api/private/signup.ts
index b8793582fd..d535d49836 100644
--- a/src/server/api/private/signup.ts
+++ b/src/server/api/private/signup.ts
@@ -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(),