We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72557a9 commit f16d0d4Copy full SHA for f16d0d4
1 file changed
index.js
@@ -293,10 +293,10 @@ function error(err) {
293
294
console.error('\n', chalk.bold.red(`[${err.message}`))
295
console.error('\n', err.showSourceCode(), '\n\n')
296
-
297
- if (argv.watch) return
298
} else {
299
console.error(err)
300
}
+ // Watch mode shouldn't exit on error
+ if (argv.watch) return
301
process.exit(1)
302
0 commit comments