From d9e64ad992cf9da635dc2e1eb276621fd2208748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A5le=20Tomten?= Date: Mon, 22 Jan 2024 15:15:19 +0100 Subject: [PATCH] Fix minor typo. --- lib/cli/run.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli/run.js b/lib/cli/run.js index 1203e992fd..91e36b0668 100644 --- a/lib/cli/run.js +++ b/lib/cli/run.js @@ -370,11 +370,11 @@ exports.handler = async function (argv) { await runMocha(mocha, argv); } catch (err) { if (!err) { - console.error('\n Undefined error:`, err); + console.error('\n Undefined error:', err); } else { console.error('\n' + (err.stack || `Error: ${err.message}`), err); } - + process.exit(1); } };