Better database errors

This commit is contained in:
Valentin Tolmer committed 2021-05-23 17:06:21 +02:00
1 parent 28b7be0500
commit cd84aff310
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@ use thiserror::Error;
pub enum Error {
#[error("Authentication error for `{0}`")]
AuthenticationError(String),
#[error("Database error")]
#[error("Database error: `{0}`")]
DatabaseError(#[from] sqlx::Error),
}