]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix typo in "already exist" error message 333/head
authorCale <1299322+WildYorkies@users.noreply.github.com>
Sun, 11 Mar 2018 15:14:35 +0000 (08:14 -0700)
committerGitHub <noreply@github.com>
Sun, 11 Mar 2018 15:14:35 +0000 (08:14 -0700)
server/middlewares/validators/users.ts

index 49bc0bb560edb85f5c740b6fe69d8e8b3752c397..6ea3d0b6c6b0bd64212d51bdfbc5ba851ad6a381 100644 (file)
@@ -250,7 +250,7 @@ async function checkUserNameOrEmailDoesNotAlreadyExist (username: string, email:
 
   if (user) {
     res.status(409)
-              .send({ error: 'User with this username of email already exists.' })
+              .send({ error: 'User with this username or email already exists.' })
               .end()
     return false
   }