aboutsummaryrefslogtreecommitdiff
path: root/bpkg/bpkg.cxx
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/bpkg.cxx
parentc289f73d6fdc9f86b90e0986ba3b0da0c29e7927 (diff)
Exit with status 2 for recoverable errors
Diffstat (limited to 'bpkg/bpkg.cxx')
-rw-r--r--bpkg/bpkg.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx
index ffc91ab..7aba553 100644
--- a/bpkg/bpkg.cxx
+++ b/bpkg/bpkg.cxx
@@ -517,6 +517,13 @@ try
assert (false);
fail << "unhandled command";
}
+ // Derived from failed and so needs to be caught first.
+ //
+ catch (const recoverable&)
+ {
+ r = 2;
+ break;
+ }
catch (const failed&)
{
r = 1;