Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Don't exit if an error occurs while watching
Browse files Browse the repository at this point in the history
If the user specified to watch a directory/file and an error occurs we shouldn't stop the process.
  • Loading branch information
dprotaso committed Feb 5, 2015
1 parent a4c45a5 commit 0fe3bbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/node-sass
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ function getEmitter() {

emitter.on('error', function(err) {
console.error(err);
process.exit(1);
if (!options.watch) {
process.exit(1);
}
});

emitter.on('warn', function(data){
Expand Down

0 comments on commit 0fe3bbe

Please sign in to comment.