mirror of https://github.com/status-im/nim-eth.git
log the stack trace on fatal exceptions
This commit is contained in:
parent
74d0247e6b
commit
cb27813f3b
|
@ -5,7 +5,7 @@ proc catchOrQuit(error: Exception) =
|
|||
if error of CatchableError:
|
||||
trace "Async operation ended with a recoverable error", err = error.msg
|
||||
else:
|
||||
fatal "Fatal exception reached", err = error.msg
|
||||
fatal "Fatal exception reached", err = error.msg, stackTrace = getStackTrace()
|
||||
quit 1
|
||||
|
||||
proc traceAsyncErrors*(fut: FutureBase) =
|
||||
|
|
Loading…
Reference in New Issue