mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
feat: define accountnotfound and captcha notfound err vals
This commit is contained in:
@@ -38,6 +38,12 @@ pub enum DBError {
|
|||||||
/// Captcha key is taken
|
/// Captcha key is taken
|
||||||
#[error("Captcha key is taken")]
|
#[error("Captcha key is taken")]
|
||||||
CaptchaKeyTaken,
|
CaptchaKeyTaken,
|
||||||
|
/// Account not found
|
||||||
|
#[error("Account not found")]
|
||||||
|
AccountNotFound,
|
||||||
|
/// Captcha not found
|
||||||
|
#[error("Captcha not found")]
|
||||||
|
CaptchaNotFound,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Convenience type alias for grouping driver-specific errors
|
/// Convenience type alias for grouping driver-specific errors
|
||||||
|
|||||||
Reference in New Issue
Block a user