From 16881e2770c82ee2d90d79e7b22c5f1e38f382bc Mon Sep 17 00:00:00 2001 From: Jeb Bearer Date: Fri, 4 Oct 2024 09:05:58 -0700 Subject: [PATCH] Fix account fetching error message --- types/src/v0/traits.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/src/v0/traits.rs b/types/src/v0/traits.rs index 7622a944c..ee5f243fd 100644 --- a/types/src/v0/traits.rs +++ b/types/src/v0/traits.rs @@ -56,7 +56,11 @@ pub trait StateCatchup: Send + Sync + std::fmt::Debug { .retry(self, |provider| { provider .try_fetch_account(height, view, fee_merkle_tree_root, account) - .map_err(|err| err.context("fetching account {account}")) + .map_err(|err| { + err.context(format!( + "fetching account {account}, height {height}, view {view:?}" + )) + }) .boxed() }) .await;