From 3da4fdb8db26cfc6f8e73f1041d65cdc76b4cee3 Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 14 Oct 2020 11:35:45 +1000 Subject: [PATCH] Reword more errors --- zebra-consensus/src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zebra-consensus/src/error.rs b/zebra-consensus/src/error.rs index 0df0b96c..27b456a4 100644 --- a/zebra-consensus/src/error.rs +++ b/zebra-consensus/src/error.rs @@ -53,7 +53,7 @@ pub enum BlockError { #[error("invalid difficulty threshold in block header {0:?} {1:?}")] InvalidDifficulty(zebra_chain::block::Height, zebra_chain::block::Hash), - #[error("block {0:?} has difficulty threshold {2:?} that is below the {3:?} difficulty limit {4:?}")] + #[error("block {0:?} has a difficulty threshold {2:?} that is easier than the {3:?} difficulty limit {4:?}, hash: {1:?}")] TargetDifficultyLimit( zebra_chain::block::Height, zebra_chain::block::Hash, @@ -62,7 +62,7 @@ pub enum BlockError { zebra_chain::work::difficulty::ExpandedDifficulty, ), - #[error("block {0:?} failed the difficulty filter: hash {1:?} must be at least as difficult as the difficulty threshold {2:?}")] + #[error("block {0:?} has a hash {1:?} that is easier than the difficulty threshold {2:?}")] DifficultyFilter( zebra_chain::block::Height, zebra_chain::block::Hash,