mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +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,
|
stderr=subprocess.STDOUT,
|
||||||
)
|
)
|
||||||
self.io.tool_output(result.stdout)
|
self.io.tool_output(result.stdout)
|
||||||
passed.append(edit)
|
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
self.io.tool_output(e.output)
|
self.io.tool_error(e.output)
|
||||||
failed.append(edit)
|
|
||||||
else:
|
|
||||||
failed.append(edit)
|
|
||||||
else:
|
else:
|
||||||
path, original, updated = edit
|
path, original, updated = edit
|
||||||
full_path = self.abs_root_path(path)
|
full_path = self.abs_root_path(path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue