diff options
author | Yuriy Glukhov <yuriy.glukhov@gmail.com> | 2016-08-29 13:10:06 +0300 |
---|---|---|
committer | Yuriy Glukhov <yuriy.glukhov@gmail.com> | 2016-08-29 13:10:06 +0300 |
commit | f12f27c185f40576633473ee548636c72f146a90 (patch) | |
tree | 47dac15203518f2029384ba89b0cf6fb2e5ebc78 /tests/exception | |
parent | 12cd8fe9e27256e2fb565ca3445ef94328339a6d (diff) | |
download | Nim-f12f27c185f40576633473ee548636c72f146a90.tar.gz |
Fixed getCurrentException and getCurrentExceptionMsg. Closes #4635
Diffstat (limited to 'tests/exception')
-rw-r--r-- | tests/exception/texceptions.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/exception/texceptions.nim b/tests/exception/texceptions.nim index bdf338599..b30b3874b 100644 --- a/tests/exception/texceptions.nim +++ b/tests/exception/texceptions.nim @@ -9,7 +9,7 @@ FINALLY RECOVER BEFORE -EXCEPT +EXCEPT: IOError: hi FINALLY ''' """ @@ -52,10 +52,10 @@ echo "" proc return_in_except = try: echo "BEFORE" - raise newException(IOError, "") + raise newException(IOError, "hi") except: - echo "EXCEPT" + echo "EXCEPT: ", getCurrentException().name, ": ", getCurrentExceptionMsg() return finally: |