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/fetch.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bpkg/fetch.cxx') diff --git a/bpkg/fetch.cxx b/bpkg/fetch.cxx index 978d61c..8a33f07 100644 --- a/bpkg/fetch.cxx +++ b/bpkg/fetch.cxx @@ -498,7 +498,7 @@ namespace bpkg } catch (const process_error& e) { - error << "unable to execute " << fetch_path << ": " << e.what (); + error << "unable to execute " << fetch_path << ": " << e; if (e.child ()) exit (1); @@ -647,7 +647,7 @@ namespace bpkg } catch (const system_error& e) { - fail << "unable to copy " << f << " to " << r << ": " << e.what (); + fail << "unable to copy " << f << " to " << r << ": " << e; } return r; @@ -685,7 +685,7 @@ namespace bpkg } catch (const io_error& e) { - fail << "unable to read from " << f << ": " << e.what () << endf; + fail << "unable to read from " << f << ": " << e << endf; } } -- cgit v1.1