From 3edb2252af0dbc326cff4ed5b61c8d2bec4a38f8 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Fri, 13 May 2022 19:08:14 +0530 Subject: [PATCH] feat: define accountnotfound and captcha notfound err vals --- db/db-core/src/errors.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db/db-core/src/errors.rs b/db/db-core/src/errors.rs index 07e3b0f6..7c3bc1a4 100644 --- a/db/db-core/src/errors.rs +++ b/db/db-core/src/errors.rs @@ -38,6 +38,12 @@ pub enum DBError { /// Captcha key is taken #[error("Captcha key is taken")] 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