fixes system.onUnhandledException feature

This commit is contained in:
Andreas Rumpf
2017-07-12 15:39:12 +02:00
parent 57ed077c1e
commit 03e0aa37e3

View File

@@ -238,7 +238,7 @@ var onUnhandledException*: (proc (errorMsg: string) {.
template unhandled(buf, body) =
if onUnhandledException != nil:
onUnhandledException(buf)
onUnhandledException($buf)
else:
body