Merge pull request #93 from davestephens/username

Small typo in username validation error message
This commit is contained in:
Bryan Ashby 2016-09-01 21:22:12 -06:00 committed by GitHub
commit 4c430775d9
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ function validateUserNameAvail(data, cb) {
} else {
user.getUserIdAndName(data, function userIdAndName(err) {
if(!err) { // err is null if we succeeded -- meaning this user exists already
return cb(new Error('Userame unavailable'));
return cb(new Error('Username unavailable'));
}
return cb(null);