You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7e33313
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(server): extract shared errno predicates into utils
Deduplicate the permission-error handling introduced for inaccessible
directories:
- Move the near-identical `isUnreadableDirectoryError` (filetree) and
`isPermissionError` (watcher) predicates into `src/utils/errors.ts`,
built on a shared `hasErrnoCode` helper.
- Extract the copy-pasted permission branch of both chokidar `error`
handlers into `logSkippedWatchTarget`.
- Add unit tests for the new helpers.
No behavior change.
Co-Authored-By: Claude Opus 5 <[email protected]>
0 commit comments