Skip to content

Commit

Permalink
add more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
emizzle committed Sep 14, 2023
1 parent 4ca9344 commit 0d1fd89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codex/market.nim
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ template cancelOnError*(market: Market, body) =
try:
body
except JsonRpcProviderError as e:
echo "[market.cancelOnError] error encountered -- nonce: ", e.nonce
echo "[market.cancelOnError] error encountered -- nonce: ", e.nonce, ", error: ", e.msg
if e.nonce.isSome:
# send a 0-valued transaction with the errored nonce to prevent stuck txs
await market.cancelTransaction(!e.nonce)
Expand Down

0 comments on commit 0d1fd89

Please sign in to comment.