diff options
author | Araq <rumpf_a@web.de> | 2011-06-28 01:31:53 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-06-28 01:31:53 +0200 |
commit | 5c94a9e1aea4a25fd9909adf464d9edf3b7ac526 (patch) | |
tree | f8b51a7fe867299df37e0a3cc925e2c3c8866747 /lib/system | |
parent | 3091bc4958a32065b90895c83c6393b9129e0366 (diff) | |
download | Nim-5c94a9e1aea4a25fd9909adf464d9edf3b7ac526.tar.gz |
tests are green again
Diffstat (limited to 'lib/system')
-rwxr-xr-x | lib/system/excpt.nim | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index c309ef17e..9095c168b 100755 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -206,11 +206,8 @@ proc raiseException(e: ref E_Base, ename: CString) {.compilerRtl.} = when hasSomeStackTrace: var buf = newStringOfCap(2000) rawWriteStackTrace(buf) - if not isNil(e.msg): - add(buf, "Error: unhandled exception: ") - add(buf, e.msg) - else: - add(buf, "Error: unhandled exception") + add(buf, "Error: unhandled exception: ") + if not isNil(e.msg): add(buf, e.msg) add(buf, " [") add(buf, $ename) add(buf, "]\n") |