use dynamic message destination

This commit is contained in:
Simon Hafner 2015-02-04 14:15:52 -06:00
commit d4c32102d8

View file

@ -718,7 +718,7 @@ proc handleError(msg: TMsgKind, eh: TErrorHandling, s: string) =
if stackTraceAvailable():
writeStackTrace()
else:
stderr.writeln("No stack traceback available\nTo create a stacktrace, rerun compilation with ./koch temp c <file>")
msgWriteln("No stack traceback available\nTo create a stacktrace, rerun compilation with ./koch temp c <file>")
quit 1
if msg >= fatalMin and msg <= fatalMax: