From c0aa1b477ed6e0f683bed50e30b2895be753937c Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Fri, 16 Oct 2020 15:18:09 -0700 Subject: [PATCH] consensus: add #[source] attributes to chain errors --- zebra-consensus/src/chain.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zebra-consensus/src/chain.rs b/zebra-consensus/src/chain.rs index ffe26f54d..fa76f7ac2 100644 --- a/zebra-consensus/src/chain.rs +++ b/zebra-consensus/src/chain.rs @@ -48,9 +48,9 @@ where #[derive(Debug, Display, Error)] pub enum VerifyChainError { /// block could not be checkpointed - Checkpoint(VerifyCheckpointError), + Checkpoint(#[source] VerifyCheckpointError), /// block could not be verified - Block(VerifyBlockError), + Block(#[source] VerifyBlockError), } impl Service> for ChainVerifier