report how to create a compiler stacktrace #1280
This commit is contained in:
parent
9bd72fc0d9
commit
fc5700619b
2 changed files with 18 additions and 1 deletions
|
|
@ -715,7 +715,10 @@ type
|
|||
proc handleError(msg: TMsgKind, eh: TErrorHandling, s: string) =
|
||||
template quit =
|
||||
if defined(debug) or gVerbosity >= 3 or msg == errInternal:
|
||||
writeStackTrace()
|
||||
if stackTraceAvailable():
|
||||
writeStackTrace()
|
||||
else:
|
||||
stderr.writeln("No stack traceback available\nTo create a stacktrace, rerun compilation with ./koch temp c <file>")
|
||||
quit 1
|
||||
|
||||
if msg >= fatalMin and msg <= fatalMax:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue