Skip to content

Commit

Permalink
Annotate wrapped error in Context error type as #[source] (#1265)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 authored Nov 9, 2024
1 parent e483d10 commit 5a12ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vortex-error/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub enum VortexError {
AssertionFailed(ErrString, Backtrace),
/// A wrapper for other errors, carrying additional context.
#[error("{0}: {1}")]
Context(ErrString, Box<VortexError>),
Context(ErrString, #[source] Box<VortexError>),
/// A wrapper for errors from the Arrow library.
#[error(transparent)]
ArrowError(
Expand Down

0 comments on commit 5a12ac3

Please sign in to comment.