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()