new VM: passes more tests
This commit is contained in:
parent
3560827a28
commit
4ffe6a8282
6 changed files with 45 additions and 26 deletions
|
|
@ -700,11 +700,9 @@ type
|
|||
|
||||
proc handleError(msg: TMsgKind, eh: TErrorHandling, s: string) =
|
||||
template maybeTrace =
|
||||
if defined(debug) or gVerbosity >= 3:
|
||||
if defined(debug) or gVerbosity >= 3 or msg == errInternal:
|
||||
writeStackTrace()
|
||||
|
||||
if msg == errInternal:
|
||||
writeStackTrace() # we always want a stack trace here
|
||||
if msg >= fatalMin and msg <= fatalMax:
|
||||
maybeTrace()
|
||||
quit(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue