aboutsummaryrefslogtreecommitdiff
path: root/build2/cli
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cli')
-rw-r--r--build2/cli/init.cxx2
-rw-r--r--build2/cli/rule.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/build2/cli/init.cxx b/build2/cli/init.cxx
index ead067a..45e2655 100644
--- a/build2/cli/init.cxx
+++ b/build2/cli/init.cxx
@@ -157,7 +157,7 @@ namespace build2
// found). So it would be good to redirect child's STDERR.
//
if (!optional)
- error << "unable to execute " << args[0] << ": " << e.what ();
+ error << "unable to execute " << args[0] << ": " << e;
if (e.child ())
exit (1);
diff --git a/build2/cli/rule.cxx b/build2/cli/rule.cxx
index 59a5d66..5b78723 100644
--- a/build2/cli/rule.cxx
+++ b/build2/cli/rule.cxx
@@ -301,7 +301,7 @@ namespace build2
}
catch (const process_error& e)
{
- error << "unable to execute " << args[0] << ": " << e.what ();
+ error << "unable to execute " << args[0] << ": " << e;
if (e.child ())
exit (1);