mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-25 16:53:59 +00:00
Make unittest.nim print stack trace
This commit is contained in:
@@ -84,6 +84,7 @@ template test*(name: expr, body: stmt): stmt {.immediate, dirty.} =
|
||||
|
||||
except:
|
||||
checkpoint("Unhandled exception: " & getCurrentExceptionMsg())
|
||||
echo getCurrentException().getStackTrace()
|
||||
fail()
|
||||
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user