Merge branch 'master' into graph-tests

This commit is contained in:
Wyatt Johnson
2017-02-17 15:50:21 -07:00
committed by GitHub
31 changed files with 316 additions and 166 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ router.put('/username', authorization.needed(), (req, res, next) => {
})
.catch(error => {
if (error.code === 11000) {
next(errors.ErrDisplayTaken);
next(errors.ErrUsernameTaken);
} else {
next(error);
}