Merge pull request #1876 from flaviut/unittest-stacktrace
Add stack trace to unitest.nim exceptions
This commit is contained in:
commit
e386b7460b
1 changed files with 1 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ template test*(name: expr, body: stmt): stmt {.immediate, dirty.} =
|
|||
|
||||
except:
|
||||
checkpoint("Unhandled exception: " & getCurrentExceptionMsg())
|
||||
echo getCurrentException().getStackTrace()
|
||||
fail()
|
||||
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue