-
Notifications
You must be signed in to change notification settings - Fork 303
-
Notifications
You must be signed in to change notification settings - Fork 303
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
Silent crash on node 6 #31
Comments
Figured it out - it's because the value returned by Fixing this will also require changes in the Researching now, may have a couple pull requests ready soon... |
I was able to fix the silent error thing by installing var Bluebird = require('bluebird');
global.Promise = Bluebird;
Bluebird.onPossiblyUnhandledRejection(function(error){
throw error;
}); Worth thinking about. Sadly, this method is not available in the standard promise implementation. Either that, or get really rigorous always returning rejected promises up the stack. Lines 97-118 in Here's something I wrote about promises: https://blog.scottnonnenberg.com/the-trouble-with-promises/ |
Thanks for this package. So useful! :0)
I downloaded it and tried it on my blog today, and it was giving me just four lines of output. Confused, I started looking at the code, and realized that it finished in the middle of enqueuing its first set of links. With a new
try/catch
inHtmlChecker/enqueueLink
I found that the process was indeed silently crashing:On node
6.1.0
it throws this error, and on node4.4.3
it works properly. Seems that there are two bugs here - one about thehasOwnProperty
issue, and the other about silently crashing!The text was updated successfully, but these errors were encountered: