Skip to content

Commit

Permalink
fix: ignore the error that directoryPath is not a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
liximomo committed Dec 12, 2022
1 parent dc690bb commit fe84a8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/DirectoryWatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,9 @@ class DirectoryWatcher extends EventEmitter {

onScanError(err) {
if (err) {
console.error("Watchpack Error (initial scan): " + err);
if (err.code !== 'ENOTDIR') {
console.error("Watchpack Error (initial scan): " + err);
}
}
this.onScanFinished();
}
Expand Down

0 comments on commit fe84a8b

Please sign in to comment.