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.
pull/4261/head
Ross Burton 7 years ago
parent dc7bb37c46
commit 1efcca637b
  1. 2
      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))

Loading…
Cancel
Save