-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
better error #633
Comments
This part is a little debatable (I’m totally with you on better messages)—the reason promises don’t natively do this is because you can always add a rejection handler via process.on('unhandledRejection', (error, promise) => {
console.error("An action failed because:", error);
}); |
This part, however, dovetails with some of the other issues we've been talking about in #645, #646, and #593. I'm on board for making events have more helpful errors. |
I'm going to merge this with #646. |
Right know it logs something like "Cannot read property 'blur' of null" when there is a not existing selector, would be great for next version to have additional info of the action and what triggered the error, etc :)
Also, if there is a fatal error like a not existing selector, shouldn't the error be logged even if there is no catch?
The text was updated successfully, but these errors were encountered: