summaryrefslogtreecommitdiff
path: root/src/cli.rs
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/cli.rs
parent526067fecf6bafec060d97162a16bc18cd74ad9b (diff)
Most pass-through errors do not need additional message text
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs4
1 files changed, 1 insertions, 3 deletions
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<String> {
}
#[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),
}