From c742b752140ab0eee6e353c779bd897042ba6739 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Tue, 19 Jul 2022 19:49:39 -0400 Subject: Big login system Still needs cookies, but those are coming! (and should be set anyways!) --- src/errors.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/errors.rs') 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 = Result; -- cgit v1.2.3