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

Extended onError method for returning also response object #37

Merged
merged 2 commits into from
Jan 19, 2014

Conversation

KSDaemon
Copy link

@KSDaemon KSDaemon commented Jan 7, 2014

Hi! Happy new year! :)
Thanks for a great uploader: it's small and simple and do the stuff!
But, in my case, i have a REST JSON API, which always response me a json, and some http status code (which is not always 200/OK). So, to notify user about some server-side validation errors, i need access to response object in onError callback. You have provided this object in onComplete callback, but not in other cases. If you don't mind, i have extended onError callback, to also contain response object, if it exists, or FALSE in other cases.

@LPology
Copy link
Owner

LPology commented Jan 19, 2014

Hey, sorry for the delay in responding. This is a good idea, thanks. Merging now.

LPology added a commit that referenced this pull request Jan 19, 2014
Extended onError method for returning also response object
@LPology LPology merged commit 7088ea3 into LPology:master Jan 19, 2014
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.

2 participants