Skip to content

Commit

Permalink
log out watching errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Apr 26, 2020
1 parent da8c244 commit f6d5f77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/DirectoryWatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ DirectoryWatcher.prototype.onDirectoryUnlinked = function onDirectoryUnlinked(di
}
};

DirectoryWatcher.prototype.onWatcherError = function onWatcherError(/* err */) {
DirectoryWatcher.prototype.onWatcherError = function onWatcherError(err) {
console.warn("Error from chokidar (" + this.path + "): " + err);
};

DirectoryWatcher.prototype.doInitialScan = function doInitialScan() {
Expand Down

0 comments on commit f6d5f77

Please sign in to comment.