summary refs log tree commit diff stats
path: root/lib/system/jssys.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-08-16 12:30:00 +0200
committerAraq <rumpf_a@web.de>2018-08-16 12:30:00 +0200
commit2870ca5d717996d8451282de56c20418c89162a9 (patch)
treeb9b866ac48680a8363bf3d30e9664b59c66e2a53 /lib/system/jssys.nim
parente05d0ea0bbb6ea48fb5017deec28f558e7e15755 (diff)
parentd82dd3c47d4aaaaea4bd1c1063d34006073bca38 (diff)
downloadNim-2870ca5d717996d8451282de56c20418c89162a9.tar.gz
Merge branch 'araq-misc' into devel
Diffstat (limited to 'lib/system/jssys.nim')
-rw-r--r--lib/system/jssys.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/jssys.nim b/lib/system/jssys.nim
index e12bab184..8d4a2e482 100644
--- a/lib/system/jssys.nim
+++ b/lib/system/jssys.nim
@@ -110,7 +110,7 @@ proc getStackTrace*(e: ref Exception): string = e.trace
 proc unhandledException(e: ref Exception) {.
     compilerproc, asmNoStackFrame.} =
   var buf = ""
-  if e.msg != nil and e.msg[0] != '\0':
+  if e.msg.len != 0:
     add(buf, "Error: unhandled exception: ")
     add(buf, e.msg)
   else: