curl-users
[PATCH] Intend to add --fail-early
Date: Sat, 12 Nov 2016 14:25:28 +0100 (CET)
FYI,
I plan to add this new command line option, as shown in the attached patch.
Comments, feedback and complaints are welcome!
The curl man page documentation for the new option is shown below.
-----
--fail-early
Fail and exit on first detected error.
When curl is used to do multiple transfers on the command line, it will
attempt to operate on each given URL, one by one. By default, it will ignore
errors if there are more URLs given and the last URL's success will determine
the error code curl returns. So early failures will be "hidden" by subsequent
successful transfers.
Using this option, curl will instead return an error on the first transfers
that fails, independent on the amount of more URLs that are given on the
command line. This way, no transfer failures go undetected by scripts and
similar.
-- / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
- text/x-diff attachment: 0001-curl-add-fail-early.patch