mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-07 05:05:01 +00:00
refactor: improve error handling in run_cmd function
This commit is contained in:
parent
d8639bac48
commit
c4e4967691
3 changed files with 5 additions and 3 deletions
|
@ -14,7 +14,7 @@ def run_cmd(command, verbose=False, error_print=None):
|
|||
|
||||
return run_cmd_subprocess(command, verbose)
|
||||
except OSError as e:
|
||||
error_message = f"OSError occurred while running command '{command}': {str(e)}"
|
||||
error_message = f"Error occurred while running command '{command}': {str(e)}"
|
||||
if error_print is None:
|
||||
print(error_message)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue