summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-10-24 01:13:44 +0200
committerAraq <rumpf_a@web.de>2012-10-24 01:13:44 +0200
commitde338526ecaaf86072b7d7c8053db3815238bc1c (patch)
treea1dcfbfff5c9bbb308e7e7326000c27388340ea0 /lib
parentb1c44c9ae12f14162dcff060d786fd478349bf94 (diff)
downloadNim-de338526ecaaf86072b7d7c8053db3815238bc1c.tar.gz
caas barely works now
Diffstat (limited to 'lib')
-rwxr-xr-xlib/system/excpt.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim
index aedb0ef4b..fd7557ef0 100755
--- a/lib/system/excpt.nim
+++ b/lib/system/excpt.nim
@@ -206,7 +206,8 @@ proc raiseExceptionAux(e: ref E_Base) =
   else:
     when hasSomeStackTrace:
       var buf = newStringOfCap(2000)
-      rawWriteStackTrace(buf)
+      if isNil(e.trace): rawWriteStackTrace(buf)
+      else: add(buf, e.trace)
       add(buf, "Error: unhandled exception: ")
       if not isNil(e.msg): add(buf, e.msg)
       add(buf, " [")