Skip to content

Commit 2082113

Browse files
committed
chore: add more info to error message
1 parent 3e52aa0 commit 2082113

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

stacks-signer/src/runloop.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,11 @@ impl RunLoop {
300300
// If the stacks-node is still processing the burn block, the /v2/pox endpoint
301301
// may return the previous reward cycle. In this case, we should retry.
302302
return Err(backoff::Error::transient(ClientError::InvalidResponse(
303-
"Received reward cycle info does not match the current burn block height."
304-
.to_string(),
303+
format!("Received reward cycle ({}) does not match the expected reward cycle ({}) for block {}.",
304+
info.reward_cycle,
305+
block_reward_cycle,
306+
current_burn_block_height
307+
),
305308
)));
306309
}
307310
Ok(info)

0 commit comments

Comments
 (0)