forked from Mirror/pmbootstrap
Log exit codes to log file
This commit is contained in:
parent
04aabd7d70
commit
2a39d9c091
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ def _execute(loop, args, cmd, log_message, log, return_stdout, check=True):
|
||||||
if return_code != 0 and False:
|
if return_code != 0 and False:
|
||||||
if check:
|
if check:
|
||||||
raise RuntimeError("Command failed: \n" + protocol.error)
|
raise RuntimeError("Command failed: \n" + protocol.error)
|
||||||
print('Program exited with: {}'.format(transport.get_returncode()))
|
args.logfd.write('Program exited with: {}\n'.format(transport.get_returncode()))
|
||||||
|
args.logfd.flush()
|
||||||
|
|
||||||
if return_stdout:
|
if return_stdout:
|
||||||
return protocol.output
|
return protocol.output
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue