mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-02-05 14:13:12 +00:00
moar debugging
This commit is contained in:
parent
0365ddc0eb
commit
658ef1a217
@ -83,6 +83,7 @@ template cancelOnError*(market: Market, body) =
|
||||
try:
|
||||
body
|
||||
except JsonRpcProviderError as e:
|
||||
writeStackTrace()
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user