refactor: improve error handling in run_cmd function

This commit is contained in:
Paul Gauthier 2024-09-04 08:56:34 -07:00 committed by Paul Gauthier (aider)
parent d8639bac48
commit c4e4967691
3 changed files with 5 additions and 3 deletions

View file

@ -778,7 +778,9 @@ class Commands:
def cmd_run(self, args, add_on_nonzero_exit=False):
"Run a shell command and optionally add the output to the chat (alias: !)"
exit_status, combined_output = run_cmd(args, verbose=self.verbose)
exit_status, combined_output = run_cmd(
args, verbose=self.verbose, error_print=self.io.tool_error
)
instructions = None
if combined_output is None: