You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
File WatcherArea: what it touches
Bug FixesKind: in v2.1.222,
Bug FixesSection of the release
What
The watcher checks the error listener count before emitting, so a watch error or an error during a pending write can no longer surface as an unhandled 'error' event.
Details
Check sits alongside the existing ENOENT/ENOTDIR filtering and the ignorePermissionErrors option.
In the pending-write path, when no error listeners are registered the pending write is discarded rather than emitting an ERROR event.