summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/excpt.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim
index 84a1da343..3c0e42c6e 100644
--- a/lib/system/excpt.nim
+++ b/lib/system/excpt.nim
@@ -357,6 +357,8 @@ proc raiseExceptionAux(e: ref Exception) =
         raiseCounter.inc # skip zero at overflow
       e.raiseId = raiseCounter
       {.emit: "`e`->raise();".}
+  elif defined(nimQuirky):
+    if currException == nil: currException = e
   else:
     if excHandler != nil:
       if not excHandler.hasRaiseAction or excHandler.raiseAction(e):