diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-12 16:57:14 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-14 16:27:11 +0300 |
commit | 6909c20e69f08d256360dd29e50eacd02f49dfb8 (patch) | |
tree | 16f14b482632ad52333a8e598d6e021bd1c442ec /bpkg/diagnostics.hxx | |
parent | c289f73d6fdc9f86b90e0986ba3b0da0c29e7927 (diff) |
Exit with status 2 for recoverable errors
Diffstat (limited to 'bpkg/diagnostics.hxx')
-rw-r--r-- | bpkg/diagnostics.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bpkg/diagnostics.hxx b/bpkg/diagnostics.hxx index d11ab0b..925b080 100644 --- a/bpkg/diagnostics.hxx +++ b/bpkg/diagnostics.hxx @@ -21,6 +21,11 @@ namespace bpkg // class failed: public std::exception {}; + // As above but needs to be used for recoverable errors which are likely to + // disappear on the command retry. + // + class recoverable: public failed {}; + // Print process commmand line. If the number of elements is specified // (or the second version is used), then it will print the piped multi- // process command line, if present. In this case, the expected format |