summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2020-01-10 01:51:06 +0100
committerAndreas Rumpf <rumpf_a@web.de>2020-01-10 08:32:30 +0100
commitfcd2f305ad5ad2af37284caf7b33907afb8ad834 (patch)
treeca433474a62522eecc978ee08bf5badbbd78a6b8 /lib
parent033da35de164e4ea86e36c8c4bb366f3fc4ac01a (diff)
downloadNim-fcd2f305ad5ad2af37284caf7b33907afb8ad834.tar.gz
fixes #13070
Diffstat (limited to 'lib')
-rw-r--r--lib/system/excpt.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim
index e241879c2..931f3f640 100644
--- a/lib/system/excpt.nim
+++ b/lib/system/excpt.nim
@@ -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)