1
0
Fork 0

Improve error message on actor name conflict

This commit is contained in:
Chocobozzz 2018-08-27 16:42:27 +02:00
parent 2db85d6b6e
commit c907c2fa3f
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View 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
}