Comparing version 0.16.2 to 0.16.3
# master | ||
# 0.16.3 | ||
* Do not silently swallow errors in change/error event handlers | ||
# 0.16.2 | ||
@@ -4,0 +8,0 @@ |
@@ -53,4 +53,4 @@ var EventEmitter = require('events').EventEmitter | ||
this.emit('change', hash) | ||
}.bind(this), function(error) { | ||
this.emit('error', error) | ||
}.bind(this), function(err) { | ||
this.emit('error', err) | ||
if (Object.keys(self.watchedDirs).length === 0) { | ||
@@ -62,3 +62,9 @@ console.error('An error occured before the first directory could be watched.') | ||
}.bind(this)) | ||
.then(this.check.bind(this)) | ||
.then(this.check.bind(this), function(err) { | ||
// Errors here are usually due to errors in change/error event handlers | ||
console.error('An unexpected error occurred. Watcher quitting.') | ||
console.error(err.stack) | ||
// Rethrow in case a debugging tool wants to catch it | ||
throw err | ||
}) | ||
} else { | ||
@@ -65,0 +71,0 @@ setTimeout(this.check.bind(this), interval) |
{ | ||
"name": "broccoli", | ||
"description": "Fast client-side asset builder", | ||
"version": "0.16.2", | ||
"version": "0.16.3", | ||
"author": "Jo Liss <joliss42@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60864
554