* honor --errorMax even for tools (eg drnim, nim doc) (#14546)
* fix a bug that prevented nim doc compiler/nim on windows
This commit is contained in:
parent
621384b8ef
commit
4301a3da9d
9 changed files with 22 additions and 15 deletions
|
|
@ -525,8 +525,7 @@ proc mainCommand(graph: ModuleGraph) =
|
|||
|
||||
add(conf.searchPaths, conf.libpath)
|
||||
|
||||
# do not stop after the first error:
|
||||
conf.errorMax = high(int)
|
||||
conf.setErrorMaxHighMaybe # honor --errorMax even if it may not make sense here
|
||||
# do not print errors, but log them
|
||||
conf.writelnHook = myLog
|
||||
conf.structuredErrorHook = nil
|
||||
|
|
@ -674,8 +673,7 @@ else:
|
|||
|
||||
add(conf.searchPaths, conf.libpath)
|
||||
|
||||
# do not stop after the first error:
|
||||
conf.errorMax = high(int)
|
||||
conf.setErrorMaxHighMaybe
|
||||
# do not print errors, but log them
|
||||
conf.writelnHook = myLog
|
||||
conf.structuredErrorHook = nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue