From 78d17c3255184156a13fed840e927465fc29f290 Mon Sep 17 00:00:00 2001 From: Akihito Nakano Date: Mon, 28 Dec 2020 01:25:33 +0000 Subject: [PATCH] Tweak error messages for ease of investigation (#2122) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Proposed Changes Tweaked the error message for ease of investigation as `Failed to update eth1 cache` is used in multiple places. 😃 --- beacon_node/eth1/src/service.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/beacon_node/eth1/src/service.rs b/beacon_node/eth1/src/service.rs index 5d33af6b6..6cfbf581b 100644 --- a/beacon_node/eth1/src/service.rs +++ b/beacon_node/eth1/src/service.rs @@ -670,7 +670,9 @@ impl Service { let outcome = self .update_deposit_cache(Some(new_block_numbers_deposit), &endpoints) .await - .map_err(|e| format!("Failed to update eth1 cache: {:?}", process_err(e)))?; + .map_err(|e| { + format!("Failed to update eth1 deposit cache: {:?}", process_err(e)) + })?; trace!( self.log, @@ -686,7 +688,7 @@ impl Service { let outcome = self .update_block_cache(Some(new_block_numbers_block_cache), &endpoints) .await - .map_err(|e| format!("Failed to update eth1 cache: {:?}", process_err(e)))?; + .map_err(|e| format!("Failed to update eth1 block cache: {:?}", process_err(e)))?; trace!( self.log,