]> go.fuhry.dev Git - fsnotify.git/commit
Use common error when removing an unwatched file (#460)
authorMartin Tournoij <martin@arp242.net>
Thu, 21 Jul 2022 03:06:57 +0000 (05:06 +0200)
committerGitHub <noreply@github.com>
Thu, 21 Jul 2022 03:06:57 +0000 (05:06 +0200)
commit1a4f9493f56af684db37b119b939450dedbb4a0a
treeecaf0694670eb4d41de29485ac0faeda5a17f09d
parent5acfdc196a28e905f69348ba0b5c50714492ba26
Use common error when removing an unwatched file (#460)

The errors returned by the various implementations of the watcher are all different
which makes handling them difficult. This PR follows the suggestion in:
https://github.com/fsnotify/fsnotify/pull/455#issuecomment-1146037157 by @mattn
to create a common error which is wrapped by the implementations.

Replaces: https://github.com/fsnotify/fsnotify/pull/455
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Andrew Thornton <art27@cantab.net>
fsnotify.go
inotify.go
inotify_test.go
kqueue.go
windows.go