Report stuck last_id in error message

This commit is contained in:
Michael Vines 2019-01-22 11:07:45 -08:00 committed by Grimes
parent 8dc9089611
commit 9a7082d0d5
1 changed files with 5 additions and 1 deletions

View File

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