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/cfg-create.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bpkg/cfg-create.cxx') diff --git a/bpkg/cfg-create.cxx b/bpkg/cfg-create.cxx index 488d22e..b3d672b 100644 --- a/bpkg/cfg-create.cxx +++ b/bpkg/cfg-create.cxx @@ -106,7 +106,7 @@ namespace bpkg } catch (const io_error& e) { - fail << "unable to write to " << f << ": " << e.what (); + fail << "unable to write to " << f << ": " << e; } // Write build/root.build. @@ -137,7 +137,7 @@ namespace bpkg } catch (const io_error& e) { - fail << "unable to write to " << f << ": " << e.what (); + fail << "unable to write to " << f << ": " << e; } // Write root buildfile. @@ -156,7 +156,7 @@ namespace bpkg } catch (const io_error& e) { - fail << "unable to write to " << f << ": " << e.what (); + fail << "unable to write to " << f << ": " << e; } // Configure. -- cgit v1.1