-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Friendly Errors #3930
Friendly Errors #3930
Conversation
@bmac this is a very early cut (missing tests entirely for instance!) but I'm wondering how you feel about this approach? Hopefully this is enough to iterate on though (I'm working on adding tests etc so feel free to just comment and I'll handle the code part, I'm sure you're plenty busy enough already!) Thanks again! |
This is awesome. |
Aww shucks 😊 Is there anything more I can do that's useful? Or is it looking OK?
|
Oh yes! Still missing tests, of course - I just wanted to check the Tests incoming. I'll sing out if I hit issues. Thanks!
|
LGTM 👍 |
@fivetanley @tchak have added tests now, Travis seems to be having issues at the mo but they run in the browser for me locally :D |
@nikz Do you mind squashing this pr into 1 commit? |
@@ -0,0 +1,52 @@ | |||
import setupStore from 'dummy/tests/helpers/store'; | |||
/* import Ember from 'ember'; */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove this line?
@bmac of course, sorry, how messy of me! 🛀 Cleaned that up now :) EDIT: Apart from that nasty merge commit arghhhh. |
@bmac there we go, one single commit that's fast-forward on current master :) |
Thanks @nikz |
Yay! Thanks team 🙌
|
@param {Number} status | ||
@param {Object} headers | ||
@param {Object} payload | ||
@return {Object} request information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a param, and the return a string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Wanna submit a PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…nging in RESTAdapter's handleResponse function emberjs/data#3930, pass along requestData as argument in active-model-adapter handleResponse override method as well as fix handleResponse - returns ajax response if not 422 response test
…ng in RESTAdapter's handleResponse function emberjs/data#3930, pass along requestData as argument in active-model-adapter handleResponse override method as well as fix handleResponse - returns ajax response if not 422 response test
…ng in RESTAdapter's handleResponse function emberjs/data#3930, pass along requestData as argument in active-model-adapter handleResponse override method as well as fix handleResponse - returns ajax response if not 422 response test (#83)
This is an initial PR to iterate on "friendly" (more detailed) error messages for Ember Data, as per RFC101
(emberjs/rfcs#101)