From b28352f2b54ffc60f83f3181fcfea5c49cb7e1f5 Mon Sep 17 00:00:00 2001 From: dimxy Date: Mon, 27 Feb 2023 16:56:45 +0500 Subject: [PATCH] improve CommitBlockError message: include underlying ValidateContextError message --- 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 edb651a26b3..39039e5a08c 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.