log the stack trace on fatal exceptions

This commit is contained in:
Ștefan Talpalaru 2020-02-23 01:53:57 +01:00
parent 74d0247e6b
commit cb27813f3b
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 1 additions and 1 deletions

View File

@ -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) =