mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
fixed raise proc error
This commit is contained in:
parent
7e054239c6
commit
f43a189c1a
1 changed files with 1 additions and 1 deletions
|
@ -635,7 +635,7 @@ def run_subproc(cmds, captured=True):
|
||||||
output = output.replace('\r\n', '\n')
|
output = output.replace('\r\n', '\n')
|
||||||
else:
|
else:
|
||||||
hist.last_cmd_out = output
|
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)
|
raise CalledProcessError(hist.last_cmd_rtn, aliased_cmd, output=output)
|
||||||
if captured:
|
if captured:
|
||||||
return output
|
return output
|
||||||
|
|
Loading…
Add table
Reference in a new issue