diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-11-10 17:54:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-11-14 14:12:22 +0300 |
commit | 9254560cc32fe219da9d9fe454e396e8f2a13b33 (patch) | |
tree | db911671b0e3df3cf670a5458ad156c62e39b0d8 /libbuild2/functions-process.cxx | |
parent | 91119c23370c54cd74d6350bcba7975805c3e9bf (diff) |
Make $process.run() print builtin command line on error and verbosity level >= 3
Diffstat (limited to 'libbuild2/functions-process.cxx')
-rw-r--r-- | libbuild2/functions-process.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
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; } |