debian-mirror-gitlab/app/assets/javascripts/captcha/unsolved_captcha_error.js
2021-04-17 20:07:23 +05:30

10 lines
259 B
JavaScript

import { __ } from '~/locale';
class UnsolvedCaptchaError extends Error {
constructor(message) {
super(message || __('You must solve the CAPTCHA in order to submit'));
this.name = 'UnsolvedCaptchaError';
}
}
export default UnsolvedCaptchaError;