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

generaterequest catch() in parent scope has no error info #281

Open
davidmaxwaterman opened this issue Jun 29, 2017 · 0 comments
Open

generaterequest catch() in parent scope has no error info #281

davidmaxwaterman opened this issue Jun 29, 2017 · 0 comments

Comments

@davidmaxwaterman
Copy link

See this SO question for more info:

https://stackoverflow.com/questions/38018531/retrieving-status-code-from-ironrequest-promise

Particularly the comment to the accepted answer:

This approach works only if the catch handler is in the same scope as the generateRequest() call. What can be done if the request is fired in a method that returns the promise, with a catch handler in a parent scope?

I'll try and make a quick demo...

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

No branches or pull requests

1 participant