aboutsummaryrefslogtreecommitdiff
path: root/bpkg/cfg-create.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-01-06 03:23:55 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-01-09 21:35:36 +0300
commit64f84951d0e5c1d3352ba7b9f6c894eac72424c8 (patch)
tree1a8b69ae4d45ed08b6230dd1d4baf397d30e75b3 /bpkg/cfg-create.cxx
parent9a90993e5605627121d7f51b4faf570d6d3bea83 (diff)
Make use of operator<<(ostream, exception)
Diffstat (limited to 'bpkg/cfg-create.cxx')
-rw-r--r--bpkg/cfg-create.cxx6
1 files changed, 3 insertions, 3 deletions
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.