Skip to content

Commit

Permalink
better warnings on files that are missing or not normal
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier committed Oct 19, 2023
1 parent 54742a2 commit cd30e53
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aider/repomap.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,12 @@ def get_ranked_tags(self, chat_fnames, other_fnames):
for fname in fnames:
if not Path(fname).is_file():
if fname not in self.warned_files:
self.io.tool_error(f"Repo-map can't include {fname}")
if Path(fname).exists():
self.io.tool_error(
f"Repo-map can't include {fname}, it is not a normal file"
)
else:
self.io.tool_error(f"Repo-map can't include {fname}, it no longer exists")

self.warned_files.add(fname)
continue
Expand Down

0 comments on commit cd30e53

Please sign in to comment.