mirror of
https://github.com/status-im/nim-eth.git
synced 2025-02-17 16:37:15 +00:00
Fix Windows compilation error.
This commit is contained in:
parent
a6be6426ab
commit
a4c53b4346
@ -9,9 +9,10 @@ proc catchOrQuit(error: Exception) =
|
||||
quit 1
|
||||
|
||||
proc traceAsyncErrors*(fut: FutureBase) =
|
||||
fut.addCallback do (arg: pointer):
|
||||
proc continuation(arg: pointer) {.gcsafe.} =
|
||||
if not fut.error.isNil:
|
||||
catchOrQuit fut.error[]
|
||||
fut.addCallback continuation
|
||||
|
||||
template traceAwaitErrors*(fut: FutureBase) =
|
||||
let f = fut
|
||||
|
Loading…
x
Reference in New Issue
Block a user