diff options
author | Araq <rumpf_a@web.de> | 2012-10-24 01:13:44 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-10-24 01:13:44 +0200 |
commit | de338526ecaaf86072b7d7c8053db3815238bc1c (patch) | |
tree | a1dcfbfff5c9bbb308e7e7326000c27388340ea0 /lib | |
parent | b1c44c9ae12f14162dcff060d786fd478349bf94 (diff) | |
download | Nim-de338526ecaaf86072b7d7c8053db3815238bc1c.tar.gz |
caas barely works now
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/system/excpt.nim | 3 |
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, " [") |