diff --git a/src/routes/user.js b/src/routes/user.js index aa3f7f04a..1229b59c1 100644 --- a/src/routes/user.js +++ b/src/routes/user.js @@ -45,7 +45,7 @@ function create(req, res, next) { if (error && error.reason === UserError.BAD_EMAIL) return next(new HttpError(400, 'Invalid email')); if (error && error.reason === UserError.BAD_PASSWORD) return next(new HttpError(400, 'Invalid password')); if (error && error.reason === UserError.BAD_FIELD) return next(new HttpError(400, error.message)); - if (error && error.reason === UserError.ALREADY_EXISTS) return next(new HttpError(409, 'Already exists')); + if (error && error.reason === UserError.ALREADY_EXISTS) return next(new HttpError(409, 'User already exists')); if (error) return next(new HttpError(500, error)); var userInfo = {