Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Errors thrown in module load are not reported nicely #3235
A module like this:
// mod.js throw new Error('yo')
reports its error like this:
That "nextTick error or error event on first tick" business is very confusing and weird.
Unfortunately, fixing this will require a bit of a refactor in two places. First, the nextTick logic needs to be somewhat simplified to remove the try/catch. @felixge is working on this part of it. Second, the module load cache needs to be refactored slightly so that it does not need to use a try/catch.
added a commit
May 8, 2012