fixes system.onUnhandledException feature

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

View file

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