Skip to content

Handle HTTP errors.#285

Merged
adampash merged 1 commit intopostlight:masterfrom
benubois:errors
Feb 21, 2019
Merged

Handle HTTP errors.#285
adampash merged 1 commit intopostlight:masterfrom
benubois:errors

Conversation

@benubois
Copy link
Copy Markdown
Contributor

@benubois benubois commented Feb 20, 2019

The check for errors on an HTTP request was happening after calling getExtractor. This caused problems because getExtractor isn't meant to receive an error object. Returning before getExtractor fixes this.

@benubois benubois marked this pull request as ready for review February 21, 2019 00:30
@benubois
Copy link
Copy Markdown
Contributor Author

Fixes #279.

@benubois
Copy link
Copy Markdown
Contributor Author

@adampash This is ready for review.

@benubois benubois changed the title Should return an error with non-2xx resonses. Handle HTTP errors. Feb 21, 2019
Copy link
Copy Markdown
Contributor

@adampash adampash left a comment

Choose a reason for hiding this comment

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

Oh wow that was a simple fix. Thanks @benubois!

@adampash adampash merged commit ed14203 into postlight:master Feb 21, 2019
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