aboutsummaryrefslogtreecommitdiff
path: root/build2/cli/init.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-10-19 10:44:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-10-19 10:44:52 +0200
commit83459829f24624e3cee20a7199af5c69e9678b69 (patch)
tree81774d67dac0829c39a351cfbfe8e7be808bb94d /build2/cli/init.cxx
parent9f9a7c8b7ab245fd20706ff9f6e834899b86b4e6 (diff)
Suggest override variable (config.x) when tool is not found
Diffstat (limited to 'build2/cli/init.cxx')
-rw-r--r--build2/cli/init.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/cli/init.cxx b/build2/cli/init.cxx
index 4ad8a1a..bad2533 100644
--- a/build2/cli/init.cxx
+++ b/build2/cli/init.cxx
@@ -150,7 +150,8 @@ namespace build2
else
{
if (!optional)
- fail << cli << " is not command line interface compiler";
+ fail << cli << " is not command line interface compiler" <<
+ info << "use config.cli to override";
v.clear ();
}
@@ -178,7 +179,8 @@ namespace build2
// found). So it would be good to redirect child's STDERR.
//
if (!optional)
- error << "unable to execute " << args[0] << ": " << e;
+ error << "unable to execute " << args[0] << ": " << e <<
+ info << "use config.cli to override";
if (e.child)
exit (1);