mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
subprocess mode error message
This commit is contained in:
parent
f5c810fe9b
commit
4177c6bc06
1 changed files with 6 additions and 2 deletions
|
@ -351,8 +351,12 @@ def run_subproc(cmds, captured=True):
|
|||
stdin = PIPE
|
||||
else:
|
||||
stdin = prev_proc.stdout
|
||||
proc = Popen(aliased_cmd, universal_newlines=uninew, env=ENV.detype(),
|
||||
stdin=stdin, stdout=stdout)
|
||||
try:
|
||||
proc = Popen(aliased_cmd, universal_newlines=uninew, env=ENV.detype(),
|
||||
stdin=stdin, stdout=stdout)
|
||||
except FileNotFoundError:
|
||||
print('xonsh: subprocess mode: command not found: {0}'.format(aliased_cmd[0]))
|
||||
return
|
||||
if prev_is_proxy:
|
||||
proc.communicate(input=prev_proc.stdout)
|
||||
procs.append(proc)
|
||||
|
|
Loading…
Add table
Reference in a new issue