diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index 1a7473a76e..b41c415205 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -440,9 +440,7 @@ proc raiseExceptionAux(e: sink(ref Exception)) {.nodestroy.} = pushCurrentException(e) {.emit: "throw e;".} elif defined(nimQuirky) or gotoBasedExceptions: - # XXX This check should likely also be done in the setjmp case below. - if e != currException: - pushCurrentException(e) + pushCurrentException(e) when gotoBasedExceptions: inc nimInErrorMode else: