Helpful exception for missing ext:module #576

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

Yasumoto commented Sep 7, 2012

It'd be nice to go away with the below message to something that was more explicit:

[tw-mbp13-jsmith mocha (master)]$ ./bin/mocha --compilers epicwin

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot read property '0' of undefined
at /Users/jsmith/Documents/mocha/bin/_mocha:247:10
at Array.forEach (native)
at Object. (/Users/jsmith/Documents/mocha/bin/_mocha:242:19)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Array.0 (module.js:479:10)
at EventEmitter._tickCallback (node.js:192:40)

Contributor

tj commented May 23, 2013

dont want to optimize for transpilers

@tj tj closed this May 23, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment