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/cli.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 308e91f..cc49001 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -75,11 +75,9 @@ fn started_msg(listener: &net::TcpListener) -> io::Result { } #[derive(Debug, thiserror::Error)] +#[error(transparent)] pub enum Error { - #[error("io error: {0}")] IoError(#[from] io::Error), - #[error("database error: {0}")] DatabaseError(#[from] sqlx::Error), - #[error("database migration error: {0}")] MigrateError(#[from] sqlx::migrate::MigrateError), } -- cgit v1.2.3