Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Revert "Return full response on error" #18

Merged
merged 1 commit into from
Oct 2, 2015
Merged

Conversation

chrissnyder
Copy link
Contributor

After spending more than a couple minutes looking at this, returning err is correct here. err is both an Error object, and includes the original request and response. How I didn't catch that yesterday I don't know.

I already published 2.0.0, so will publish 3.0.0 after merging.

edpaget added a commit that referenced this pull request Oct 2, 2015
Revert "Return full response on error"
@edpaget edpaget merged commit d8546b2 into master Oct 2, 2015
@edpaget edpaget deleted the revert-17-error-response branch October 2, 2015 16:01
@edpaget
Copy link
Contributor

edpaget commented Oct 2, 2015

How does this play with what the front-end current expects?

@chrissnyder
Copy link
Contributor Author

Doesn't match up yet. Requires edpaget/Panoptes-Front-End#4 to adjust the error handler to throw the proper error message.

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.

2 participants