quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

fail-early.md (1116B)


      1 ---
      2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
      3 SPDX-License-Identifier: curl
      4 Long: fail-early
      5 Help: Fail on first transfer error
      6 Added: 7.52.0
      7 Category: curl global
      8 Multi: boolean
      9 Scope: global
     10 See-also:
     11   - fail
     12   - fail-with-body
     13 Example:
     14   - --fail-early $URL https://two.example
     15 ---
     16 
     17 # `--fail-early`
     18 
     19 Fail and exit on the first detected transfer error.
     20 
     21 When curl is used to do multiple transfers on the command line, it attempts to
     22 operate on each given URL, one by one. By default, it ignores errors if there
     23 are more URLs given and the last URL's success determines the error code curl
     24 returns. Early failures are "hidden" by subsequent successful transfers.
     25 
     26 Using this option, curl instead returns an error on the first transfer that
     27 fails, independent of the amount of URLs that are given on the command
     28 line. This way, no transfer failures go undetected by scripts and similar.
     29 
     30 This option does not imply --fail, which causes transfers to fail due to the
     31 server's HTTP status code. You can combine the two options, however note --fail
     32 is not global and is therefore contained by --next.