From 1d9f410810de6fbb9c974735e5e14dbebe1c0718 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 22 Jul 2016 12:43:22 +0300 Subject: Adapt to fdstream extension --- bpkg/help.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bpkg/help.cxx') 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 (); } } -- cgit v1.1