Skip to content

Commit fe84a8b

Browse files
committed
fix: ignore the error that directoryPath is not a directory
1 parent dc690bb commit fe84a8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/DirectoryWatcher.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,9 @@ class DirectoryWatcher extends EventEmitter {
465465

466466
onScanError(err) {
467467
if (err) {
468-
console.error("Watchpack Error (initial scan): " + err);
468+
if (err.code !== 'ENOTDIR') {
469+
console.error("Watchpack Error (initial scan): " + err);
470+
}
469471
}
470472
this.onScanFinished();
471473
}

0 commit comments

Comments
 (0)