diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index cfb6492b2a..b0769b2695 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