add 'output.errorfile' config option

pull/4906/head
Mike Fährmann 10 months ago
parent e256434c9e
commit 042a9da451
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -4408,6 +4408,21 @@ Description
The default format string here is ``"{message}"``.
output.errorfile
----------------
Type
|Path|_
Description
File to write input URLs which returned an error to.
When combined with
``-I``/``--input-file-comment`` or
``-x``/``--input-file-delete``,
this option will cause all input URLs from these files
to be commented/deleted after processing them
and not just successful ones.
output.num-to-str
-----------------
Type

@ -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 \

Loading…
Cancel
Save