From 6289a870d925f94676d5a91212ec73fb9caeca7f Mon Sep 17 00:00:00 2001 From: Jah-yee <166608075+Jah-yee@users.noreply.github.com> Date: Thu, 30 Jul 2026 19:34:36 +0800 Subject: [PATCH] Fix typo: occured -> occurred in error messages --- cli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli.js b/cli.js index 05ecddb..819f10f 100755 --- a/cli.js +++ b/cli.js @@ -92,7 +92,7 @@ async function runAction (action) { }) action.done = done } catch (error) { - console.error(chalk.bold.red('!> Error occured while running action "' + name + '"'), chalk.red(error)) + console.error(chalk.bold.red('!> Error occurred while running action "' + name + '"'), chalk.red(error)) } } @@ -100,7 +100,7 @@ process.on('uncaughtException', (err) => { const action = actions.find(({ root }) => ( err.stack.split('\n').some(line => line.includes(root)) )) - console.error(chalk.bold.red('!> Unhandled error occured while running action'+ (action && (' "' + action.name + '".') || '.')) + '\n', chalk.red(err)) + console.error(chalk.bold.red('!> Unhandled error occurred while running action'+ (action && (' "' + action.name + '".') || '.')) + '\n', chalk.red(err)) if(action) { if(typeof action.done === 'function') { action.done()