Echo stderr from captured command.

This helps with debugging if the command fails.
This commit is contained in:
Elliott Sales de Andrade 2016-08-25 00:03:02 -04:00
parent 3e09aa9f11
commit b7757189e4
1 changed files with 2 additions and 0 deletions

View File

@ -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):