This commit is contained in:
Araq 2020-01-10 01:51:06 +01:00 • committed by Andreas Rumpf
commit fcd2f305ad
2 changed files with 42 additions and 2 deletions

View file

@ -452,8 +452,8 @@ proc raiseExceptionAux(e: sink(ref Exception)) {.nodestroy.} =
# XXX This check should likely also be done in the setjmp case below.
if e != currException:
pushCurrentException(e)
when gotoBasedExceptions:
inc nimInErrorMode
when gotoBasedExceptions:
inc nimInErrorMode
else:
if excHandler != nil:
pushCurrentException(e)