add 'output.errorfile' config option

This commit is contained in:
Mike Fährmann
2023-12-08 17:29:54 +01:00
parent e256434c9e
commit 042a9da451
2 changed files with 19 additions and 2 deletions

View File

@@ -249,8 +249,10 @@ def main():
input_log.error(exc)
return getattr(exc, "code", 128)
if args.error_file:
input_manager.error_file(args.error_file)
error_file = (args.error_file or
config.get(("output",), "errorfile"))
if error_file:
input_manager.error_file(error_file)
pformat = config.get(("output",), "progress", True)
if pformat and len(input_manager.urls) > 1 and \