diff options
author | Rigel Kent <par@rigelk.eu> | 2018-03-11 17:43:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-11 17:43:10 +0100 |
commit | 416c359cb5967c2b5dff0909ef5558a49d753a1a (patch) | |
tree | 21196e05fa83406273f00f5997683c66a6d8905b | |
parent | fec2ffc4a27d826c442f3c18a9eb6e3e2f43f9b8 (diff) | |
parent | edf7f40a109b057b93eb8c31602d4a3c3b1d78a2 (diff) | |
download | PeerTube-416c359cb5967c2b5dff0909ef5558a49d753a1a.tar.gz PeerTube-416c359cb5967c2b5dff0909ef5558a49d753a1a.tar.zst PeerTube-416c359cb5967c2b5dff0909ef5558a49d753a1a.zip |
Fix typo in "user already exist" error message (PR #333 from WildYorkies)
-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 49bc0bb56..6ea3d0b6c 100644 --- a/server/middlewares/validators/users.ts +++ b/server/middlewares/validators/users.ts | |||
@@ -250,7 +250,7 @@ async function checkUserNameOrEmailDoesNotAlreadyExist (username: string, email: | |||
250 | 250 | ||
251 | if (user) { | 251 | if (user) { |
252 | res.status(409) | 252 | res.status(409) |
253 | .send({ error: 'User with this username of email already exists.' }) | 253 | .send({ error: 'User with this username or email already exists.' }) |
254 | .end() | 254 | .end() |
255 | return false | 255 | return false |
256 | } | 256 | } |