summary refs log tree commit diff stats
path: root/tests/async
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2014-09-09 01:16:28 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2014-09-09 01:16:28 +0100
commitdd33069d593878e0e7c073ca3ef81157e105667c (patch)
tree4f5bcec4b3ec272b4d89d34cf45bd7a7d39081a6 /tests/async
parent6689fa68f5ee3868b128b308cb237be5c4aa5d98 (diff)
downloadNim-dd33069d593878e0e7c073ca3ef81157e105667c.tar.gz
Implements getCurrentException for try in async procs. Ref #1487.
Diffstat (limited to 'tests/async')
-rw-r--r--tests/async/tasynctry.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/async/tasynctry.nim b/tests/async/tasynctry.nim
index aa7be0b68..66ea40d49 100644
--- a/tests/async/tasynctry.nim
+++ b/tests/async/tasynctry.nim
@@ -2,7 +2,7 @@ discard """
   file: "tasynctry.nim"
   exitcode: 0
   output: '''
-Generic except
+Generic except: Test
 Specific except
 Multiple idents in except
 Multiple except branches
@@ -22,7 +22,7 @@ proc catch() {.async.} =
   try:
     await foobar()
   except:
-    echo("Generic except")
+    echo("Generic except: ", getCurrentExceptionMsg())
 
   try:
     await foobar()