We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f22ef4a commit e48d16aCopy full SHA for e48d16a
exercises/runner.js
@@ -17,15 +17,12 @@ function runner() {
17
18
exercise.addProcessor(function(mode, callback) {
19
__ = exercise.__.bind(exercise)
20
+ var testFile = this.args[0]
21
try {
- submittedFx = require(path.resolve(process.cwd(), this.args[0]));
22
+ submittedFx = require(path.resolve(process.cwd(), testFile));
23
} catch (e) {
- var message = (e.code === 'MODULE_NOT_FOUND'
24
- ? __('fail.module_not_found')
25
- : __('fail.missing_deps'))
26
-
27
- this.emit('fail', message)
28
- return callback(null, false)
+ this.emit('fail', e.stack)
+ return callback(e, false)
29
}
30
31
if (typeof submittedFx !== 'function') {
0 commit comments