Skip to content

Commit

Permalink
Add source annotations to errors (#1999)
Browse files Browse the repository at this point in the history
  • Loading branch information
bouk authored Dec 8, 2023
1 parent 3d61243 commit a1396f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use thiserror::Error;
pub enum DbErr {
/// This error can happen when the connection pool is fully-utilized
#[error("Failed to acquire connection from pool: {0}")]
ConnectionAcquire(ConnAcquireErr),
ConnectionAcquire(#[source] ConnAcquireErr),
/// Runtime type conversion error
#[error("Error converting `{from}` into `{into}`: {source}")]
TryIntoErr {
Expand Down Expand Up @@ -92,7 +92,7 @@ pub enum RuntimeErr {
/// SQLx Error
#[cfg(feature = "sqlx-dep")]
#[error("{0}")]
SqlxError(sqlx::error::Error),
SqlxError(#[source] sqlx::error::Error),
/// Error generated from within SeaORM
#[error("{0}")]
Internal(String),
Expand Down

0 comments on commit a1396f3

Please sign in to comment.