diff options
author | Cara Salter <cara@devcara.com> | 2022-07-19 19:49:39 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-07-19 19:49:39 -0400 |
commit | c742b752140ab0eee6e353c779bd897042ba6739 (patch) | |
tree | 58953fdcaedb7e6c458a29dd980b8f97fb1af2a7 /src/errors.rs | |
parent | 1bd04149f8f6133b817a37a37a91397750c76c1b (diff) | |
download | nccd-c742b752140ab0eee6e353c779bd897042ba6739.tar.gz nccd-c742b752140ab0eee6e353c779bd897042ba6739.zip |
Big login system
Still needs cookies, but those are coming! (and should be set anyways!)
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/errors.rs b/src/errors.rs index 19e0a8a..23ad8fa 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -14,7 +14,11 @@ pub enum ServiceError { #[error("Not Found")] NotFound, #[error("Axum: {0}")] - Axum(#[from] axum::Error) + Axum(#[from] axum::Error), + #[error("SQL: {0}")] + Sql(#[from] sqlx::Error), + #[error("Bcrypt: {0}")] + Bcrypt(#[from] bcrypt::BcryptError), } pub type StringResult<T = String> = Result<T, ServiceError>; |