Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify missing files error message. #384

Merged
merged 1 commit into from
Jun 25, 2023
Merged

Conversation

leomariga
Copy link
Contributor

What do you think in clarify the error message when missing a file? I had trouble understanding what was wrong when I missed some files such as the prompt "main_prompt" or the "feedback" file.

This commit changes the error message to help the user understand what needs to be done to execute the program correctly.

ie. When missing the "feedback" file, the error before this commit was:

KeyError: 'feedback'

and now is:

KeyError: "File 'feedback' could not be found in 'C:\\xxx\\xxxx\\gpt-engineer\\projects\\test'"

As shows figure above:

cmd_5MnGbGSMbT

@AntonOsika
Copy link
Owner

Great.

Keep it coming @leomariga !

@AntonOsika AntonOsika merged commit 1c8c1f5 into AntonOsika:main Jun 25, 2023
70ziko pushed a commit to 70ziko/gpt-engineer that referenced this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants