aboutsummaryrefslogtreecommitdiff
path: root/bpkg/help.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-07-22 12:43:22 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-07-23 20:06:50 +0300
commit1d9f410810de6fbb9c974735e5e14dbebe1c0718 (patch)
treef44b04d9e0a13a21deb7f59f1a2ae8334daf7f94 /bpkg/help.cxx
parent7ea82c5013ab3c3d44b4b85cf767559e7019854f (diff)
Adapt to fdstream extension
Diffstat (limited to 'bpkg/help.cxx')
-rw-r--r--bpkg/help.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/bpkg/help.cxx b/bpkg/help.cxx
index cf496ca..3d5efb8 100644
--- a/bpkg/help.cxx
+++ b/bpkg/help.cxx
@@ -50,10 +50,16 @@ namespace bpkg
//
return p.wait () ? 0 : 1;
}
+ // Catch ios_base::failure as std::system_error together with the
+ // pager-specific exceptions.
+ //
catch (const system_error& e)
{
error << "pager failed: " << e.what ();
- throw failed ();
+
+ // Fall through.
}
+
+ throw failed ();
}
}