Skip to content

Commit 1c8c1f5

Browse files
authored
Clarify missing file error (AntonOsika#384)
1 parent a41ad7b commit 1c8c1f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gpt_engineer/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __getitem__(self, key):
1818
full_path = self.path / key
1919

2020
if not full_path.is_file():
21-
raise KeyError(key)
21+
raise KeyError(f"File '{key}' could not be found in '{self.path}'")
2222
with full_path.open("r", encoding="utf-8") as f:
2323
return f.read()
2424

0 commit comments

Comments
 (0)