From 9254560cc32fe219da9d9fe454e396e8f2a13b33 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 10 Nov 2022 17:54:57 +0300 Subject: Make $process.run() print builtin command line on error and verbosity level >= 3 --- libbuild2/functions-process.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'libbuild2/functions-process.cxx') diff --git a/libbuild2/functions-process.cxx b/libbuild2/functions-process.cxx index 948f581..bbcbbab 100644 --- a/libbuild2/functions-process.cxx +++ b/libbuild2/functions-process.cxx @@ -143,6 +143,9 @@ namespace build2 builtin_callbacks cb; fdpipe ofd (open_pipe ()); + if (verb >= 3) + print_process (process_args (bn, args)); + uint8_t rs; // Storage. butl::builtin b (bf (rs, args, @@ -177,17 +180,11 @@ namespace build2 diag_record dr; dr << fail << "builtin " << bn << " " << process_exit (rs); - // @@ DBUF - // @@ TMP: this and need to print command line at verbosite >= 3 - // line for the process case. - // -#if 0 if (verb >= 1 && verb <= 2) { dr << info << "command line: "; - print_process (dr, args); + print_process (dr, process_args (bn, args)); } -#endif dr << endf; } -- cgit v1.1