Make unittest.nim print stack trace

This commit is contained in:
Flaviu Tamas
2015-01-05 18:52:26 -05:00
parent 076f993150
commit d99454314c

View File

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