From 8065636673e85704f5aab3ce3674dea729cd2a86 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 17 Dec 2017 08:53:02 +0200 Subject: Trace non-zero process exit code Also convert to using operator<<(ostream,process_exit). --- build2/cli/init.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build2/cli') diff --git a/build2/cli/init.cxx b/build2/cli/init.cxx index c698fd2..a4403a9 100644 --- a/build2/cli/init.cxx +++ b/build2/cli/init.cxx @@ -107,7 +107,9 @@ namespace build2 { const char* args[] = {cli.string ().c_str (), "--version", nullptr}; - // @@ TODO: redo using run_start()/run_finish(). + // @@ TODO: redo using run_start()/run_finish() or even + // run(). We have the ability to ignore exit code and + // redirect STDERR to STDOUT. try { -- cgit v1.1