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
Doc - error event vs. error callback #1779
Comments
I agree this is confusing. I think the documentation needs to be updated to clearly show that the callback is required even when handling the event. From the docs:
This does not tell us that we need to always have a callback to handle certain errors. Maybe write it this way instead:
(To those of you who get notifications on this thread, I accidentally posted this while logged in with the wrong account, so it is deleted and reposted. Sorry about the double notification.) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The doc does not mention the difference between the error event and callback on error. It would be nice if there was a blurb about how the two differ and when the callback would be called but no event would be emitted. For instance if the URL or options used contain an invalid entry.
For a bad URL you get both en error event and a callback with an error value:
But for a malformed only the callback fires:
The text was updated successfully, but these errors were encountered: