write exception tracebacks to stdmsg, instead of stdout
This commit is contained in:
parent
db73f3af20
commit
646458d328
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue