diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-27 16:42:27 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 16:42:27 +0200 |
commit | c907c2fa3fd7c0a741117a0204d0ebca675124bd (patch) | |
tree | 69ff3c5bc86a29a8535fab73ada986fd84c78cef /server/middlewares/validators | |
parent | 2db85d6b6ed5210e437d716abd4a068b69180165 (diff) | |
download | PeerTube-c907c2fa3fd7c0a741117a0204d0ebca675124bd.tar.gz PeerTube-c907c2fa3fd7c0a741117a0204d0ebca675124bd.tar.zst PeerTube-c907c2fa3fd7c0a741117a0204d0ebca675124bd.zip |
Improve error message on actor name conflict
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r-- | server/middlewares/validators/users.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/users.ts b/server/middlewares/validators/users.ts index f47fa8b48..c8baf22e2 100644 --- a/server/middlewares/validators/users.ts +++ b/server/middlewares/validators/users.ts | |||
@@ -286,7 +286,7 @@ async function checkUserNameOrEmailDoesNotAlreadyExist (username: string, email: | |||
286 | const actor = await ActorModel.loadLocalByName(username) | 286 | const actor = await ActorModel.loadLocalByName(username) |
287 | if (actor) { | 287 | if (actor) { |
288 | res.status(409) | 288 | res.status(409) |
289 | .send({ error: 'Another actor (account/channel) with this name already exists.' }) | 289 | .send({ error: 'Another actor (account/channel) with this name on this instance already exists or has already existed.' }) |
290 | .end() | 290 | .end() |
291 | return false | 291 | return false |
292 | } | 292 | } |