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

Provide a better error message #564

Merged
merged 1 commit into from
Jun 17, 2021

Conversation

robertbrignull
Copy link
Contributor

(Note this is merging into a feature branch, and not into main)

Suggestion from @aeisenberg on #563

This should provide a better error message in the case that the file at $GITHUB_EVENT_PATH doesn't exist or isn't valid JSON. I think this level of error handling should be fine and from here we can just let the error propagate upwards. Ideally we wouldn't want the database upload code to cause the action to fail, but that largely just applies to the HTTP requests. In this case an error here is both unlikely and a fundamental problem so I think failing is fine.

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