Skip to content

Commit f16d0d4

Browse files
committed
BREAKING: Don't exit watch mode when a plugin errors
Fixes #127
1 parent 72557a9 commit f16d0d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ function error(err) {
293293

294294
console.error('\n', chalk.bold.red(`[${err.message}`))
295295
console.error('\n', err.showSourceCode(), '\n\n')
296-
297-
if (argv.watch) return
298296
} else {
299297
console.error(err)
300298
}
299+
// Watch mode shouldn't exit on error
300+
if (argv.watch) return
301301
process.exit(1)
302302
}

0 commit comments

Comments
 (0)