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/rep-create.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpkg/rep-create.cxx') diff --git a/bpkg/rep-create.cxx b/bpkg/rep-create.cxx index eb91c2b..1762c31 100644 --- a/bpkg/rep-create.cxx +++ b/bpkg/rep-create.cxx @@ -167,7 +167,7 @@ namespace bpkg } catch (const system_error& e) { - fail << "unable to scan directory " << d << ": " << e.what () << endf; + fail << "unable to scan directory " << d << ": " << e << endf; } int @@ -263,7 +263,7 @@ namespace bpkg } catch (const io_error& e) { - fail << "unable to write to " << p << ": " << e.what (); + fail << "unable to write to " << p << ": " << e; } if (verb) -- cgit v1.1