Echo stderr from captured command.
This helps with debugging if the command fails.
This commit is contained in:
parent
3e09aa9f11
commit
b7757189e4
|
@ -63,6 +63,8 @@ def run_exe(exe):
|
||||||
if exe.capture and p.returncode == 0:
|
if exe.capture and p.returncode == 0:
|
||||||
with open(exe.capture, 'wb') as output:
|
with open(exe.capture, 'wb') as output:
|
||||||
output.write(stdout)
|
output.write(stdout)
|
||||||
|
if stderr:
|
||||||
|
sys.stderr.buffer.write(stderr)
|
||||||
return p.returncode
|
return p.returncode
|
||||||
|
|
||||||
def run(args):
|
def run(args):
|
||||||
|
|
Loading…
Reference in New Issue