summary refs log tree commit diff stats
path: root/lib/system/excpt.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-07-13 04:43:53 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-07-20 18:42:08 +0200
commitebba9f06ae3074255830128ecb599fb22a3310ef (patch)
tree980eaee3f481d94ffaf03a54cb33525b982b287d /lib/system/excpt.nim
parentec9de2e3cd34d32ed5674814cbee53e203246894 (diff)
downloadNim-ebba9f06ae3074255830128ecb599fb22a3310ef.tar.gz
fixes #5871
Diffstat (limited to 'lib/system/excpt.nim')
-rw-r--r--lib/system/excpt.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim
index b0769b269..e35b0bd5d 100644
--- a/lib/system/excpt.nim
+++ b/lib/system/excpt.nim
@@ -73,12 +73,11 @@ proc popSafePoint {.compilerRtl, inl.} =
   excHandler = excHandler.prev
 
 proc pushCurrentException(e: ref Exception) {.compilerRtl, inl.} =
-  #if e.parent.isNil:
-  #  e.parent = currException
+  e.up = currException
   currException = e
 
 proc popCurrentException {.compilerRtl, inl.} =
-  currException = nil # currException.parent
+  currException = currException.up
 
 # some platforms have native support for stack traces:
 const