-d:nimDebug: calls doAssert false instead of quit (#17739)
This commit is contained in:
parent
5c5f356347
commit
5c9c1988f6
9 changed files with 20 additions and 14 deletions
|
|
@ -50,7 +50,7 @@ proc parsePipe(filename: AbsoluteFile, inputStream: PLLStream; cache: IdentCache
|
|||
if i+1 < line.len and line[i] == '#' and line[i+1] == '?':
|
||||
when defined(nimpretty):
|
||||
# XXX this is a bit hacky, but oh well...
|
||||
quit "can't nimpretty a source code filter"
|
||||
config.quitOrRaise "can't nimpretty a source code filter: " & $filename
|
||||
else:
|
||||
inc(i, 2)
|
||||
while i < line.len and line[i] in Whitespace: inc(i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue