Skip to content

Commit f66505f

Browse files
authored
Opting for a simplified solution
1 parent 8be4ad1 commit f66505f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/cli/run.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,7 @@ exports.handler = async function (argv) {
369369
try {
370370
await runMocha(mocha, argv);
371371
} catch (err) {
372-
if (!err || !err.toString) {
373-
console.error('\n Undefined error:', err);
374-
} else {
375-
console.error('\n' + (err.stack || `Error: ${err.message || err}`));
376-
}
377-
372+
console.error('\n Exception during run:', err);
378373
process.exit(1);
379374
}
380375
};

0 commit comments

Comments
 (0)