mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
fix: Handle errors in EditBlockCoder more gracefully
This commit is contained in:
parent
b229661d0a
commit
fa7be35ec9
1 changed files with 1 additions and 5 deletions
|
@ -47,12 +47,8 @@ class EditBlockCoder(Coder):
|
|||
stderr=subprocess.STDOUT,
|
||||
)
|
||||
self.io.tool_output(result.stdout)
|
||||
passed.append(edit)
|
||||
except subprocess.CalledProcessError as e:
|
||||
self.io.tool_output(e.output)
|
||||
failed.append(edit)
|
||||
else:
|
||||
failed.append(edit)
|
||||
self.io.tool_error(e.output)
|
||||
else:
|
||||
path, original, updated = edit
|
||||
full_path = self.abs_root_path(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue