improve CommitBlockError message: include underlying ValidateContextError message (#6251)
Co-authored-by: dimxy <dimxy@komodoplatform.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
60ebefc988
commit
f858aab1d9
|
@ -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.
|
/// An error describing the reason a block could not be committed to the state.
|
||||||
#[derive(Debug, Error, PartialEq, Eq)]
|
#[derive(Debug, Error, PartialEq, Eq)]
|
||||||
#[error("block is not contextually valid")]
|
#[error("block is not contextually valid: {}", .0)]
|
||||||
pub struct CommitBlockError(#[from] ValidateContextError);
|
pub struct CommitBlockError(#[from] ValidateContextError);
|
||||||
|
|
||||||
/// An error describing why a block failed contextual validation.
|
/// An error describing why a block failed contextual validation.
|
||||||
|
|
Loading…
Reference in New Issue