Commit 0fe3bbe5 by David Protasowski

Don't exit if an error occurs while watching

If the user specified to watch a directory/file and an error occurs we shouldn't stop the process.
parent a4c45a54
...@@ -98,7 +98,9 @@ function getEmitter() { ...@@ -98,7 +98,9 @@ function getEmitter() {
emitter.on('error', function(err) { emitter.on('error', function(err) {
console.error(err); console.error(err);
if (!options.watch) {
process.exit(1); process.exit(1);
}
}); });
emitter.on('warn', function(data){ emitter.on('warn', function(data){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment