mirror of
https://github.com/wassname/talk.git
synced 2026-07-11 10:32:32 +08:00
Add cannot ignore staff error
This commit is contained in:
@@ -195,6 +195,12 @@ const ErrAssetURLAlreadyExists = new APIError('Asset URL already exists, cannot
|
||||
status: 409
|
||||
});
|
||||
|
||||
// ErrCannotIgnoreStaff is returned when a user tries to ignore a staff member.
|
||||
const ErrCannotIgnoreStaff = new APIError('Cannot ignore staff members.', {
|
||||
translation_key: 'CANNOT_IGNORE_STAFF',
|
||||
status: 400
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
ExtendableError,
|
||||
APIError,
|
||||
@@ -221,5 +227,6 @@ module.exports = {
|
||||
ErrLoginAttemptMaximumExceeded,
|
||||
ErrEditWindowHasEnded,
|
||||
ErrCommentTooShort,
|
||||
ErrAssetURLAlreadyExists
|
||||
ErrAssetURLAlreadyExists,
|
||||
ErrCannotIgnoreStaff
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user