Tweak error messages for ease of investigation (#2122)

## Proposed Changes

<!-- Please list or describe the changes introduced by this PR. -->

Tweaked the error message for ease of investigation as `Failed to update eth1 cache` is used in multiple places. 😃
This commit is contained in:
Akihito Nakano 2020-12-28 01:25:33 +00:00
parent 9ed65a64f8
commit 78d17c3255

View File

@ -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,