diff options
Diffstat (limited to 'lib/system/excpt.nim')
-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") |