Better database errors

This commit is contained in:
Valentin Tolmer 2021-05-23 17:06:21 +02:00
parent 28b7be0500
commit cd84aff310

View File

@ -4,7 +4,7 @@ use thiserror::Error;
pub enum Error { pub enum Error {
#[error("Authentication error for `{0}`")] #[error("Authentication error for `{0}`")]
AuthenticationError(String), AuthenticationError(String),
#[error("Database error")] #[error("Database error: `{0}`")]
DatabaseError(#[from] sqlx::Error), DatabaseError(#[from] sqlx::Error),
} }