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

Propagate HTTP errors in AFMMRecordResponseSerializer #107

Closed
wants to merge 2 commits into from

Conversation

aldenks
Copy link

@aldenks aldenks commented Mar 31, 2015

AFMMRecordResponseSerializer was silently swallowing all errors from the
HTTPResponseSerializer and attempting to parse responses regardless.

Fix by returning nil as the response object while the correct error is set.

AFMMRecordResponseSerializer was silently swallowing all errors from the
HTTPResponseSerializer and attempting to parse responses regardless.

Fix by returning nil as the response object while the correct error is set.
@davidstoker
Copy link

I was just stepping through this last night to try to figure out why the errors weren't coming through from AFMMRecordResponseSerializer. Wish I had seen your pull request and saved myself some time. +1 for this!

@aldenks
Copy link
Author

aldenks commented Apr 2, 2015

I had to push an unrelated commit to my fork's master, so I recreated this PR from a branch #108

@aldenks aldenks closed this Apr 2, 2015
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.

None yet

2 participants