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 some context about the http request when the RESTAdapter rejects #3862

Closed
wants to merge 1 commit into from

Conversation

bmac
Copy link
Member

@bmac bmac commented Oct 16, 2015

Before

screen shot 2015-10-16 at 7 57 54 am

### After

screen shot 2015-10-16 at 7 58 28 am

@fivetanley
Copy link
Member

@bmac LGTM. can you resolve conflicts?

@return {Object | DS.AdapterError} response
*/
handleResponse: function(status, headers, payload) {
handleResponse: function(status, headers, payload, errorMessage) {
Copy link
Member

Choose a reason for hiding this comment

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

I feel like we should not call the param errorMessage. It can be ok, or created in case of success. I would be ok with statusText, even if in case of obvious errors we "augment" the proper statusText.

@bmac bmac closed this Dec 3, 2015
@btecu
Copy link
Contributor

btecu commented Dec 3, 2015

I was looking forward this. @tchak are you planning on doing something better? ...

@bmac
Copy link
Member Author

bmac commented Dec 3, 2015

@btecu I closed this pr because I think #3930 is going to be a better solution for this problem.

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.

4 participants