Improve error message on actor name conflict
authorChocobozzz <me@florianbigard.com>
Mon, 27 Aug 2018 14:42:27 +0000 (16:42 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 27 Aug 2018 14:42:27 +0000 (16:42 +0200)
server/middlewares/validators/users.ts

index f47fa8b4893b81f940ed2b35475eeffa09f7d98b..c8baf22e22c3fec7a15ebfaa0c2defcaba597a07 100644 (file)
@@ -286,7 +286,7 @@ async function checkUserNameOrEmailDoesNotAlreadyExist (username: string, email:
   const actor = await ActorModel.loadLocalByName(username)
   if (actor) {
     res.status(409)
-       .send({ error: 'Another actor (account/channel) with this name already exists.' })
+       .send({ error: 'Another actor (account/channel) with this name on this instance already exists or has already existed.' })
        .end()
     return false
   }