Comment too short fixes

This commit is contained in:
Wyatt Johnson
2017-05-12 11:16:52 -06:00
parent e3017efebf
commit ffd96f57e9
3 changed files with 13 additions and 0 deletions
+7
View File
@@ -162,6 +162,12 @@ const ErrEditWindowHasEnded = new APIError('Edit window is over', {
status: 403
});
// ErrCommentTooShort is returned when the comment is too short.
const ErrCommentTooShort = new APIError('Comment was too short', {
translation_key: 'COMMENT_TOO_SHORT',
status: 400
});
module.exports = {
ExtendableError,
APIError,
@@ -185,4 +191,5 @@ module.exports = {
ErrInstallLock,
ErrLoginAttemptMaximumExceeded,
ErrEditWindowHasEnded,
ErrCommentTooShort
};