From 539d2cd77891ac02c1d467c65d26c880ea154b59 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 18 Sep 2024 12:29:50 -0400 Subject: Most pass-through errors do not need additional message text --- src/channel/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/channel') diff --git a/src/channel/app.rs b/src/channel/app.rs index 0a28fb6..4505ea9 100644 --- a/src/channel/app.rs +++ b/src/channel/app.rs @@ -109,7 +109,7 @@ impl<'a> Channels<'a> { #[derive(Debug, thiserror::Error)] pub enum InternalError { - #[error("database error: {0}")] + #[error(transparent)] DatabaseError(#[from] sqlx::Error), } @@ -117,7 +117,7 @@ pub enum InternalError { pub enum EventsError { #[error("channel {0} not found")] ChannelNotFound(channel::Id), - #[error("database error: {0}")] + #[error(transparent)] DatabaseError(#[from] sqlx::Error), } -- cgit v1.2.3