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:
parent
9ed65a64f8
commit
78d17c3255
@ -670,7 +670,9 @@ impl Service {
|
|||||||
let outcome = self
|
let outcome = self
|
||||||
.update_deposit_cache(Some(new_block_numbers_deposit), &endpoints)
|
.update_deposit_cache(Some(new_block_numbers_deposit), &endpoints)
|
||||||
.await
|
.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!(
|
trace!(
|
||||||
self.log,
|
self.log,
|
||||||
@ -686,7 +688,7 @@ impl Service {
|
|||||||
let outcome = self
|
let outcome = self
|
||||||
.update_block_cache(Some(new_block_numbers_block_cache), &endpoints)
|
.update_block_cache(Some(new_block_numbers_block_cache), &endpoints)
|
||||||
.await
|
.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!(
|
trace!(
|
||||||
self.log,
|
self.log,
|
||||||
|
Loading…
Reference in New Issue
Block a user