We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 232e0a3 commit 3aaa707Copy full SHA for 3aaa707
1 file changed
lib/internal/fs/recursive_watch.js
@@ -229,7 +229,7 @@ class FSWatcher extends EventEmitter {
229
this.#watchFolder(filename);
230
}
231
} catch (error) {
232
- if (this.#options.throwIfNoEntry !== false && error.code === 'ENOENT') {
+ if (!this.#options.throwIfNoEntry && error.code === 'ENOENT') {
233
error.filename = filename;
234
throw error;
235
0 commit comments