Merge pull request #1876 from flaviut/unittest-stacktrace

Add stack trace to unitest.nim exceptions
This commit is contained in:
Andreas Rumpf
2015-01-07 14:15:11 +01:00

View File

@@ -99,6 +99,7 @@ template test*(name: expr, body: stmt): stmt {.immediate, dirty.} =
except:
checkpoint("Unhandled exception: " & getCurrentExceptionMsg())
echo getCurrentException().getStackTrace()
fail()
finally: