Errors needs to use APIError.

This commit is contained in:
gaba
2017-01-13 14:15:31 -08:00
parent 1cc048d46e
commit 06ab33343f
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ const ErrEmailTaken = new APIError('Email address already in use', {
status: 400
});
const ErrDisplayTaken = new Error('Display name already in use', {
const ErrDisplayTaken = new APIError('Display name already in use', {
translation_key: 'DISPLAYNAME_IN_USE',
status: 400
});