From 6909c20e69f08d256360dd29e50eacd02f49dfb8 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 12 Sep 2020 16:57:14 +0300 Subject: Exit with status 2 for recoverable errors --- bpkg/diagnostics.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bpkg/diagnostics.hxx') 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 -- cgit v1.1