From 64f84951d0e5c1d3352ba7b9f6c894eac72424c8 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 6 Jan 2017 03:23:55 +0300 Subject: Make use of operator<<(ostream, exception) --- bpkg/pkg-verify.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bpkg/pkg-verify.cxx') diff --git a/bpkg/pkg-verify.cxx b/bpkg/pkg-verify.cxx index e214654..cd51d54 100644 --- a/bpkg/pkg-verify.cxx +++ b/bpkg/pkg-verify.cxx @@ -106,8 +106,8 @@ namespace bpkg { // Note: this is not an "invalid package" case, so no diag check. // - fail << "unable to extract manifest file from " << af << ": " - << e.what () << endf; + fail << "unable to extract manifest file from " << af << ": " << e + << endf; } package_manifest @@ -158,7 +158,7 @@ namespace bpkg catch (const io_error& e) { if (diag) - error << "unable to read from " << mf << ": " << e.what (); + error << "unable to read from " << mf << ": " << e; throw failed (); } -- cgit v1.1