reintroduced the errors.ErrSameUsernameProvided

This commit is contained in:
Wyatt Johnson
2018-01-05 11:31:40 -07:00
parent 7b5993bc60
commit c9bc9a4b10
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -59,6 +59,11 @@ const ErrUsernameTaken = new APIError('Username already in use', {
status: 400
});
const ErrSameUsernameProvided = new APIError('Username provided for change is the same as current', {
translation_key: 'SAME_USERNAME_PROVIDED',
status: 400
});
const ErrSpecialChars = new APIError('No special characters are allowed in a username', {
translation_key: 'NO_SPECIAL_CHARACTERS',
status: 400
@@ -245,5 +250,6 @@ module.exports = {
ErrSettingsNotInit,
ErrSpecialChars,
ErrUsernameTaken,
ErrSameUsernameProvided,
ExtendableError,
};