Files
talk/plugins/talk-plugin-toxic-comments/server/errors.js
T
2017-09-06 22:11:48 +07:00

16 lines
293 B
JavaScript

const {APIError} = require('../../../errors');
const ErrNoComment = new APIError('Comment must be provided', {
status: 400,
});
const ErrToxic = new APIError('Comment is toxic', {
status: 400,
translation_key: 'COMMENT_IS_TOXIC',
});
module.exports = {
ErrNoComment,
ErrToxic,
};