summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-01-07 14:15:11 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-01-07 14:15:11 +0100
commite386b7460b83159e5ae86df15677df367a2fc077 (patch)
treef9058bd084451ed2a368af7ed54032453203dc55
parent5bd2889267dcd9fb18297dbac0f0e3fef6036688 (diff)
parentd99454314cdaf9bf971b00443940775f5bcfc3e7 (diff)
downloadNim-e386b7460b83159e5ae86df15677df367a2fc077.tar.gz
Merge pull request #1876 from flaviut/unittest-stacktrace
Add stack trace to unitest.nim exceptions
-rw-r--r--lib/pure/unittest.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/unittest.nim b/lib/pure/unittest.nim
index 8e7c8efe6..d42941420 100644
--- a/lib/pure/unittest.nim
+++ b/lib/pure/unittest.nim
@@ -99,6 +99,7 @@ template test*(name: expr, body: stmt): stmt {.immediate, dirty.} =
 
     except:
       checkpoint("Unhandled exception: " & getCurrentExceptionMsg())
+      echo getCurrentException().getStackTrace()
       fail()
 
     finally: