Skip to content

Commit

Permalink
improve CommitBlockError message: include underlying ValidateContextE…
Browse files Browse the repository at this point in the history
…rror message (#6251)

Co-authored-by: dimxy <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 2, 2023
1 parent 60ebefc commit f858aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra-state/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub type BoxError = Box<dyn std::error::Error + Send + Sync + 'static>;

/// An error describing the reason a block could not be committed to the state.
#[derive(Debug, Error, PartialEq, Eq)]
#[error("block is not contextually valid")]
#[error("block is not contextually valid: {}", .0)]
pub struct CommitBlockError(#[from] ValidateContextError);

/// An error describing why a block failed contextual validation.
Expand Down

0 comments on commit f858aab

Please sign in to comment.