Skip to content

Commit

Permalink
kairos-data: make errors more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp committed Jul 11, 2024
1 parent 05b1228 commit 843f84f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kairos-data/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ use thiserror::Error;

#[derive(Error, Debug)]
pub enum DBError {
#[error("There was an issue connecting to the database")]
#[error("There was an issue connecting to the database: {0}")]
ConnectionError(#[from] DDError),
#[error("There was an error in sync code executing in a separate thread")]
#[error("There was an error in sync code executing in a separate thread: {0}")]
InteractError(#[from] DDIError),
#[error("Pool error")]
#[error("Pool error: {0}")]
PoolError(#[from] deadpool::managed::PoolError<deadpool_diesel::Error>),
#[error("Diesel error")]
#[error("Diesel error: {0}")]
DieselError(#[from] DieselError),
}

0 comments on commit 843f84f

Please sign in to comment.