4489b4fc48464fd81be4c5aecd6058862b6e2f05
[platform/upstream/curl.git] / docs / cmdline-opts / fail-early.d
1 Long: fail-early
2 Help: Fail on first transfer error, do not continue
3 Added: 7.52.0
4 ---
5 Fail and exit on first detected error.
6
7 When curl is used to do multiple transfers on the command line, it will
8 attempt to operate on each given URL, one by one. By default, it will ignore
9 errors if there are more URLs given and the last URL's success will determine
10 the error code curl returns. So early failures will be "hidden" by subsequent
11 successful transfers.
12
13 Using this option, curl will instead return an error on the first transfers
14 that fails, independent on the amount of more URLs that are given on the
15 command line. This way, no transfer failures go undetected by scripts and
16 similar.
17
18 This option will apply for all given URLs even if you use --next.