Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ 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))
}
}

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