aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/gtkdochelper.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-09-25 12:30:03 +0100
committerRoss Burton <ross.burton@intel.com>2018-09-28 17:18:24 +0100
commit1efcca637b70ad5e3f2bac035b7ebe497b18080a (patch)
tree0bffee1fd5f10fd99016b00d1d295fbb8fbf732f /mesonbuild/scripts/gtkdochelper.py
parentdc7bb37c465822b3918c7d4d942b4b32ed66d155 (diff)
downloadmeson-1efcca637b70ad5e3f2bac035b7ebe497b18080a.zip
meson-1efcca637b70ad5e3f2bac035b7ebe497b18080a.tar.gz
meson-1efcca637b70ad5e3f2bac035b7ebe497b18080a.tar.bz2
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.
Diffstat (limited to 'mesonbuild/scripts/gtkdochelper.py')
-rw-r--r--mesonbuild/scripts/gtkdochelper.py2
1 files changed, 1 insertions, 1 deletions
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))