Fixed getCurrentException and getCurrentExceptionMsg. Closes #4635

This commit is contained in:
Yuriy Glukhov 2016-08-29 13:10:06 +03:00
commit f12f27c185
2 changed files with 26 additions and 12 deletions

View file

@ -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: