aboutsummaryrefslogtreecommitdiff
path: root/bpkg/diagnostics.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-09-12 16:57:14 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-09-14 16:27:11 +0300
commit6909c20e69f08d256360dd29e50eacd02f49dfb8 (patch)
tree16f14b482632ad52333a8e598d6e021bd1c442ec /bpkg/diagnostics.hxx
parentc289f73d6fdc9f86b90e0986ba3b0da0c29e7927 (diff)
Exit with status 2 for recoverable errors
Diffstat (limited to 'bpkg/diagnostics.hxx')
-rw-r--r--bpkg/diagnostics.hxx5
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