Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Poller on 'error' fails to return response from model.fetch() #17

Closed
royrusso opened this issue May 15, 2013 · 2 comments
Closed

Poller on 'error' fails to return response from model.fetch() #17

royrusso opened this issue May 15, 2013 · 2 comments
Assignees
Labels

Comments

@royrusso
Copy link

In testing, I have noticed that the poller 'on error' only accepts once parameter (the model). Is it possible to get the original response object, so a reason for the failed fetch can be determined?

Something like:

         clusterHealthPoller.on('error', function (healthModel, reponse) {
                        var status = reponse.status;

...

@uzikilon
Copy link
Owner

That makes total sense.
I'll add it in the next couple of days.

@ghost ghost assigned uzikilon May 16, 2013
@royrusso
Copy link
Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants