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 #460

Merged
merged 1 commit into from Jul 21, 2022
Merged

Use common error when removing an unwatched file #460

merged 1 commit into from Jul 21, 2022

Conversation

arp242
Copy link
Member

@arp242 arp242 commented Jul 21, 2022

Applies shogo82148/fsnotify#8 to replace #455.


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

Replaces: #455
Signed-off-by: Andrew Thornton art27@cantab.net

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

Replaces: #455
Signed-off-by: Andrew Thornton <art27@cantab.net>
Copy link
Member

@shogo82148 shogo82148 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. Thanks!
LGTM

@arp242 arp242 merged commit 1a4f949 into main Jul 21, 2022
@arp242 arp242 deleted the err branch July 21, 2022 03:06
@shogo82148 shogo82148 mentioned this pull request Mar 6, 2024
25 tasks
shogo82148 added a commit to shogo82148/fsnotify that referenced this pull request Mar 6, 2024
shogo82148 pushed a commit to shogo82148/fsnotify that referenced this pull request Mar 6, 2024
port of fsnotify/fsnotify#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:
fsnotify/fsnotify#455 (comment) by @mattn
to create a common error which is wrapped by the implementations.
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

3 participants