summaryrefslogtreecommitdiff
path: root/src/channel
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-09-18 12:29:50 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-09-18 12:29:55 -0400
commit539d2cd77891ac02c1d467c65d26c880ea154b59 (patch)
tree5c9e71a12605e08d1c2cc872f6c5ae88166c9e72 /src/channel
parent526067fecf6bafec060d97162a16bc18cd74ad9b (diff)
Most pass-through errors do not need additional message text
Diffstat (limited to 'src/channel')
-rw-r--r--src/channel/app.rs4
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),
}