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/checksum.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpkg/checksum.cxx') diff --git a/bpkg/checksum.cxx b/bpkg/checksum.cxx index d0424dc..75f1375 100644 --- a/bpkg/checksum.cxx +++ b/bpkg/checksum.cxx @@ -323,7 +323,7 @@ namespace bpkg } catch (const process_error& e) { - error << "unable to execute " << sha256_path << ": " << e.what (); + error << "unable to execute " << sha256_path << ": " << e; if (e.child ()) exit (1); @@ -423,7 +423,7 @@ namespace bpkg } catch (const io_error& e) { - fail << "unable read " << f << ": " << e.what () << endf; + fail << "unable read " << f << ": " << e << endf; } } } -- cgit v1.1