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
fix errors being triggered on successful requests #22
Conversation
The error id is a number not a string, stops errors being triggered incorrectly
I actually changed it to a string here: 25ad30f. Which version is right now? :o |
First time I've looked at the project but I think it has to do with this change later on which then parsed it as an number: e371174 |
Fix errors being triggered on successful requests
Unfortunately I can't test on my own atm. Thanks for the fix! |
First of all, this was a breaking change introduced in a patch version (I'm assuming this project follows SemVer?) but secondly and more importantly how am I supposed to know now whether actions like "login" or "use" were successful when all three arguments supplied to the callback (error, response, rawResponse) are all |
@hnrch02: Why is this a breaking change? It is only backend error parsing. |
Yes, it is a backend error parsing change which removes the Anyway, it makes more sense that error is |
OK, i am sry then for this, but this behaviour (undefined when no error) was always wanted this way. If i have time, i will maybe take a deeper look over the whole code and, additionally, create some tests. Those should prevent stuff like this then (in other words: yes, you are completely right! ;) ). |
The error id is a number not a string, stops errors being triggered incorrectly