Skip to content

Commit

Permalink
BREAKING: Don't exit watch mode when a plugin errors
Browse files Browse the repository at this point in the history
Fixes #127
  • Loading branch information
RyanZim committed Feb 3, 2018
1 parent 72557a9 commit f16d0d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,10 @@ function error(err) {

console.error('\n', chalk.bold.red(`[${err.message}`))
console.error('\n', err.showSourceCode(), '\n\n')

if (argv.watch) return
} else {
console.error(err)
}
// Watch mode shouldn't exit on error
if (argv.watch) return
process.exit(1)
}

0 comments on commit f16d0d4

Please sign in to comment.