Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use common error when removing an unwatched file #8

Merged
merged 1 commit into from Jul 17, 2022

Conversation

zeripath
Copy link
Contributor

What does this pull request do?

The errors returned by the various implementations of the watcher are all different
which makes handling them difficult. This PR follows the suggestion in:
fsnotify/fsnotify#455 (comment) by @mattn
to create a common error which is wrapped by the implementations.

Replaces: fsnotify/fsnotify#455

Where should the reviewer start?

fsnotify.go err definition

How should this be manually tested?

Remove an unwatched file and check the error returned.

The errors returned by the various implementations of the watcher are all different
which makes handling them difficult. This PR follows the suggestion in:
fsnotify/fsnotify#455 (comment) by @mattn
to create a common error which is wrapped by the implementations.

Replaces: fsnotify/fsnotify#455
Signed-off-by: Andrew Thornton <art27@cantab.net>
@shogo82148
Copy link
Owner

Thanks!

@shogo82148 shogo82148 merged commit 4388b7a into shogo82148:main Jul 17, 2022
@zeripath zeripath deleted the replace-fsnotify-455 branch July 18, 2022 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants