diff options
Diffstat (limited to 'src/channel')
| -rw-r--r-- | src/channel/app.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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), } |
