Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/codegen/extensions/tools/relace_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def relace_edit(codebase: Codebase, filepath: str, edit_snippet: str, api_key: O
try:
file = codebase.get_file(filepath)
except ValueError:
msg = f"File not found: {filepath}"
raise FileNotFoundError(msg)
msg = f"File {filepath} does not exist. Make sure to specify the full filepath from the repo root, e.g. `a/b/c.tsx`."
return RelaceEditObservation(status="error", error=msg, filepath=filepath)

# Get the original content
original_content = file.content
Expand Down
Loading