fix: Handle errors in EditBlockCoder more gracefully

This commit is contained in:
Paul Gauthier 2024-08-20 17:33:23 -07:00 committed by Paul Gauthier (aider)
parent b229661d0a
commit fa7be35ec9

View file

@ -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)