add more debugging
This commit is contained in:
parent
52e61a0c58
commit
0365ddc0eb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue