Skip to content

Commit

Permalink
Opting for a simplified solution
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Feb 20, 2024
1 parent 8be4ad1 commit f66505f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/cli/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,7 @@ exports.handler = async function (argv) {
try {
await runMocha(mocha, argv);
} catch (err) {
if (!err || !err.toString) {
console.error('\n Undefined error:', err);
} else {
console.error('\n' + (err.stack || `Error: ${err.message || err}`));
}

console.error('\n Exception during run:', err);
process.exit(1);
}
};

0 comments on commit f66505f

Please sign in to comment.