Small typo in username validation error message

This commit is contained in:
David Stephens 2016-09-01 19:34:31 +01:00
parent f2638474b3
commit 0b3b7bee41
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);