From f858aab1d908d68cfbc8ac5dd6414ae5850cf948 Mon Sep 17 00:00:00 2001 From: teor Date: Thu, 2 Mar 2023 16:30:01 +1000 Subject: [PATCH] improve CommitBlockError message: include underlying ValidateContextError message (#6251) Co-authored-by: dimxy Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- zebra-state/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra-state/src/error.rs b/zebra-state/src/error.rs index edb651a26..39039e5a0 100644 --- a/zebra-state/src/error.rs +++ b/zebra-state/src/error.rs @@ -43,7 +43,7 @@ pub type BoxError = Box; /// 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.