From fcd2f305ad5ad2af37284caf7b33907afb8ad834 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 10 Jan 2020 01:51:06 +0100 Subject: fixes #13070 --- lib/system/excpt.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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) -- cgit 1.4.1-2-gfad0