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/archive.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bpkg/archive.cxx') diff --git a/bpkg/archive.cxx b/bpkg/archive.cxx index fb7956d..3961aba 100644 --- a/bpkg/archive.cxx +++ b/bpkg/archive.cxx @@ -78,7 +78,7 @@ namespace bpkg } catch (const process_error& e) { - error << "unable to execute " << args[0] << ": " << e.what (); + error << "unable to execute " << args[0] << ": " << e; if (e.child ()) exit (1); @@ -126,7 +126,6 @@ namespace bpkg } catch (const process_error& e) { - fail << "unable to extract " << f << " from " << a << ": " << e.what () - << endf; + fail << "unable to extract " << f << " from " << a << ": " << e << endf; } } -- cgit v1.1