Skip to content

Errors: always use instance with status & all props from response#33

Open
ajoslin wants to merge 1 commit into
Netflix:masterfrom
ajoslin:status-code
Open

Errors: always use instance with status & all props from response#33
ajoslin wants to merge 1 commit into
Netflix:masterfrom
ajoslin:status-code

Conversation

@ajoslin
Copy link
Copy Markdown

@ajoslin ajoslin commented May 23, 2016

This improves error handling:

  1. All error responses are mapped to an error object, but still have all properties of the error response from the server
  2. .status is always added to the error object.

@ajoslin ajoslin force-pushed the status-code branch 2 times, most recently from 2b4511b to acd29cb Compare May 23, 2016 21:04
@ajoslin ajoslin changed the title Add the status code to the error passed into onError Errors: always use instance with status & all props from response Jun 17, 2016
@synhaptein
Copy link
Copy Markdown

Great fix! I was about to implement it on my side... Hope it can be merged soon! It would fix Netflix/falcor#745

@gottfrois
Copy link
Copy Markdown

Hey guys, would be awesome to merge this, @ajoslin can you rebase your work against master maybe? Thx

@Hagbarth
Copy link
Copy Markdown

Hagbarth commented Oct 3, 2016

Hey! Just pinging for an update here?

@ajoslin
Copy link
Copy Markdown
Author

ajoslin commented Oct 3, 2016

I'm not sure how to merge this with the latest changes safely, unfortunately, and I'm not currently active on the project I was using this in. I don't think I'll be able to justify taking the time to rebase it.

@Hagbarth
Copy link
Copy Markdown

Hagbarth commented Oct 3, 2016

@ajoslin Okay, how can I help?

@ajoslin
Copy link
Copy Markdown
Author

ajoslin commented Oct 3, 2016

Thanks @Hagbarth -- we need to rebase this to the latest master and verify that it still works.

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