From b7757189e4eb8a17182d07cdcad53e8f5ebad0ce Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 25 Aug 2016 00:03:02 -0400 Subject: [PATCH] Echo stderr from captured command. This helps with debugging if the command fails. --- mesonbuild/scripts/meson_exe.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonbuild/scripts/meson_exe.py b/mesonbuild/scripts/meson_exe.py index cdfed09f1..1a0fcdaa8 100644 --- a/mesonbuild/scripts/meson_exe.py +++ b/mesonbuild/scripts/meson_exe.py @@ -63,6 +63,8 @@ def run_exe(exe): if exe.capture and p.returncode == 0: with open(exe.capture, 'wb') as output: output.write(stdout) + if stderr: + sys.stderr.buffer.write(stderr) return p.returncode def run(args):