From 9a7082d0d57b81044b8ca3e8ccf255c69a4a8259 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 22 Jan 2019 11:07:45 -0800 Subject: [PATCH] Report stuck last_id in error message --- wallet/src/wallet.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wallet/src/wallet.rs b/wallet/src/wallet.rs index 5f0a372b12..b87ac2744c 100644 --- a/wallet/src/wallet.rs +++ b/wallet/src/wallet.rs @@ -764,7 +764,11 @@ fn resign_tx( } if next_last_id_retries == 0 { Err(WalletError::RpcRequestError( - "Unable to fetch next last_id".to_string(), + format!( + "Unable to fetch new last_id, last_id stuck at {:?}", + next_last_id + ) + .to_string(), ))?; } next_last_id_retries -= 1;