Skip to content

fs: fix recursive watch error handling - #65635

Open
panva wants to merge 1 commit into
nodejs:mainfrom
panva:fs-recursive-watch-errors
Open

fs: fix recursive watch error handling#65635
panva wants to merge 1 commit into
nodejs:mainfrom
panva:fs-recursive-watch-errors

Conversation

@panva

@panva panva commented Aug 29, 2026

Copy link
Copy Markdown
Member

Recursive watch inverted the throwIfNoEntry check during setup, causing the default behavior to suppress ENOENT while the opt-out threw it. Other setup errors were also silently ignored.

Suppress only ENOENT when throwIfNoEntry is false. Propagate all other setup failures and close watchers created before a partial failure.

Recursive watch inverted the throwIfNoEntry check during setup, causing
the default behavior to suppress ENOENT while the opt-out threw it.
Other setup errors were also silently ignored.

Suppress only ENOENT when throwIfNoEntry is false. Propagate all
other setup failures and close watchers created before a partial
failure.

Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to file-system APIs and the fs module. needs-ci PRs that need a full CI run. labels Aug 29, 2026
@panva

panva commented Aug 29, 2026

Copy link
Copy Markdown
Member Author

cc @nodejs/fs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fs Issues and PRs related to file-system APIs and the fs module. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants