{"version":"2.1.222","anchor":"file-watcher-no-longer-emits-errors-nobody-is-listening-for","canonical_anchor":"file-watcher-no-longer-emits-errors-nobody-is-listening-for","heading":"File watcher no longer emits errors nobody is listening for","tier":"notice","area":"File Watcher","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.222\/e\/file-watcher-no-longer-emits-errors-nobody-is-listening-for","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.222","markdown":"### File watcher no longer emits errors nobody is listening for\n\nFile watching errors no longer blow up as unhandled crashes when nothing is listening for them.\n\n**What**\n\nThe 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.\n\n**Details**\n\n- Check sits alongside the existing ENOENT\/ENOTDIR filtering and the `ignorePermissionErrors` option.\n- In the pending-write path, when no error listeners are registered the pending write is discarded rather than emitting an ERROR event.\n\n**Evidence**\n\n`_pendingWrites`, `ignorePermissionErrors`\n\n- Area: File Watcher\n- Names: `ignorePermissionErrors`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 0\/5"}