Skip to content

Commit

Permalink
improve CommitBlockError message: include underlying ValidateContextE…
Browse files Browse the repository at this point in the history
…rror message
  • Loading branch information
dimxy committed Feb 27, 2023
1 parent 98c634b commit b28352f
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 b28352f

Please sign in to comment.