1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
pub use auth::AuthError;
use displaydoc::Display;
use thiserror::Error;
#[derive(Debug, Display, Error)]
pub enum DatabaseError {
/// Generic database error: {0:?}
DatabaseError(sqlx::error::Error),
}
impl From<sqlx::error::Error> for DatabaseError {
fn from(e: sqlx::error::Error) -> DatabaseError {
Self::DatabaseError(e)
}
}