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

Add error message for non-200 status codes #17

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

theseanything
Copy link
Contributor

If the request is not sucessful we confusingly get a time parse error (because there is no Last-Modified header and string to parse). This makes it more explicit when the exporter is failing due to a non-200 response.

Copy link
Contributor

@sengi sengi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for adding a test for it ❤️

If the request is not sucessful we confusingly get a time parse error
(because there is no Last-Modified header and string to parse). This
makes it more explicit when the exporter is failing due to a non-200
response.
@theseanything theseanything force-pushed the add-status-code-check branch from 0ba878f to 8e4e72e Compare June 27, 2024 09:21
@theseanything theseanything merged commit fe9262a into main Jun 27, 2024
2 checks passed
@theseanything theseanything deleted the add-status-code-check branch June 27, 2024 09:22
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