From 83459829f24624e3cee20a7199af5c69e9678b69 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 19 Oct 2018 10:44:52 +0200 Subject: Suggest override variable (config.x) when tool is not found --- build2/cli/init.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build2/cli') 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); -- cgit v1.1