From cd84aff310dc061bfaa9c80e9a2b91ce1fb2ca8a Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Sun, 23 May 2021 17:06:21 +0200 Subject: [PATCH] Better database errors --- src/domain/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/error.rs b/src/domain/error.rs index 8a8c353..a1c882c 100644 --- a/src/domain/error.rs +++ b/src/domain/error.rs @@ -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), }