fixed raise proc error

This commit is contained in:
Anthony Scopatz 2016-02-04 23:45:58 -05:00
parent 7e054239c6
commit f43a189c1a

View file

@ -635,7 +635,7 @@ def run_subproc(cmds, captured=True):
output = output.replace('\r\n', '\n')
else:
hist.last_cmd_out = output
if hist.last_cmd_rtn > 0 and ENV.get('RAISE_SUBPROC_ERROR'):
if not prev_is_proxy and hist.last_cmd_rtn > 0 and ENV.get('RAISE_SUBPROC_ERROR'):
raise CalledProcessError(hist.last_cmd_rtn, aliased_cmd, output=output)
if captured:
return output