Skip to content

Use common error when removing an unwatched file#8

Merged
shogo82148 merged 1 commit intoshogo82148:mainfrom
zeripath:replace-fsnotify-455
Jul 17, 2022
Merged

Use common error when removing an unwatched file#8
shogo82148 merged 1 commit intoshogo82148:mainfrom
zeripath:replace-fsnotify-455

Conversation

@zeripath
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants