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

🐛 Better error message for File not found on fetch #328

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

noam987
Copy link
Contributor

@noam987 noam987 commented Feb 7, 2024

Summary:

Improves the error message when a user tries to fetch a template when the file is not located

probably should look into what occurs when the file is found but is not a .zip or a template.pros, but I don't understand conductor well enough to fix that quickly

Motivation:

Current error messages don't indicate what is going on to the user.
Example:
ERROR - __main__:main - 'NoneType' object has no attribute 'split' - pros-cli version:3.5.0 File "pros/conductor/conductor.py", line 188, in resolve_template File "pros/conductor/conductor.py", line 174, in resolve_templates AttributeError: 'NoneType' object has no attribute 'split'

Test Plan:

  • Fetch a valid template still works
  • Fetching a file that doesn't exist prints the new error message.

image

@noam987 noam987 requested a review from ayushuk February 7, 2024 21:34
@ayushuk ayushuk merged commit 10b38af into develop Feb 10, 2024
10 checks passed
@ayushuk ayushuk deleted the bugfix/fetch-error-message branch February 10, 2024 23:51
@ayushuk ayushuk mentioned this pull request Mar 21, 2024
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