diff --git a/lib/cli/run.js b/lib/cli/run.js index 92908be435..66c8cbbb66 100644 --- a/lib/cli/run.js +++ b/lib/cli/run.js @@ -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); } };