Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

Add the parsed response body to error objects #18

Merged
merged 4 commits into from
May 29, 2018
Merged

Conversation

Limess
Copy link
Contributor

@Limess Limess commented May 21, 2018

This is needed to do some conditional handling in dewey-web. Everything now also uses the same response parsing logic, before there were 3 separate paths.

@Limess Limess requested a review from a team May 21, 2018 16:36
@coveralls
Copy link

coveralls commented May 21, 2018

Coverage Status

Coverage increased (+0.6%) to 75.439% when pulling 5c74964 on body-on-errors into 1b26e57 on master.

* @function
* @example
* myFunction({
* requiredParameter = required('requiredParameter)
Copy link
Member

Choose a reason for hiding this comment

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

This appears to be missing a close quote mark

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was wondering why that was garish. Fixed.

Charlie Briggs added 4 commits May 29, 2018 11:24
This ensures that _fetch_ is used for all calls, which does consistent error handling.

The body is now parsed as json and added to all calls. If this parsing fails, an error is still thrown, but the body is omitted
@Limess
Copy link
Contributor Author

Limess commented May 29, 2018

Merging this in absence of any review uptake.

@Limess Limess merged commit b7ae3d4 into master May 29, 2018
@Limess Limess deleted the body-on-errors branch May 29, 2018 10:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants