write exception tracebacks to stdmsg, instead of stdout

This commit is contained in:
Michał Zieliński
2013-12-17 20:42:02 +01:00
parent db73f3af20
commit 646458d328

View File

@@ -18,7 +18,7 @@ template stackTraceNL: expr =
(if IsNil(stackTraceNewLine): "\n" else: stackTraceNewLine)
when not defined(windows) or not defined(guiapp):
proc writeToStdErr(msg: CString) = write(stdout, msg)
proc writeToStdErr(msg: CString) = write(stdmsg, msg)
else:
proc MessageBoxA(hWnd: cint, lpText, lpCaption: cstring, uType: int): int32 {.