summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/system/excpt.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim
index cfb6492b2..b0769b269 100644
--- a/lib/system/excpt.nim
+++ b/lib/system/excpt.nim
@@ -238,7 +238,7 @@ var onUnhandledException*: (proc (errorMsg: string) {.
 
 template unhandled(buf, body) =
   if onUnhandledException != nil:
-    onUnhandledException(buf)
+    onUnhandledException($buf)
   else:
     body