From 1efcca637b70ad5e3f2bac035b7ebe497b18080a Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 25 Sep 2018 12:30:03 +0100 Subject: gtkdochelper: show full command if it fails Instead of showing just the command invoked, it's useful when debugging to also show all of the arguments. --- mesonbuild/scripts/gtkdochelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/scripts/gtkdochelper.py b/mesonbuild/scripts/gtkdochelper.py index 04b4deb..01ced5b 100644 --- a/mesonbuild/scripts/gtkdochelper.py +++ b/mesonbuild/scripts/gtkdochelper.py @@ -66,7 +66,7 @@ def gtkdoc_run_check(cmd, cwd, library_paths=None): # This preserves the order of messages. p, out = Popen_safe(cmd, cwd=cwd, env=env, stderr=subprocess.STDOUT)[0:2] if p.returncode != 0: - err_msg = ["{!r} failed with status {:d}".format(cmd[0], p.returncode)] + err_msg = ["{!r} failed with status {:d}".format(cmd, p.returncode)] if out: err_msg.append(out) raise MesonException('\n'.join(err_msg)) -- cgit v1.1