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

Check for errors during FSEventStreamStart #57

Merged
merged 4 commits into from
Oct 14, 2022
Merged

Conversation

pbnjay
Copy link
Contributor

@pbnjay pbnjay commented Jan 19, 2022

What does this pull request do?

Adds an error return type to Start() and Restart() which returns non-nil if the underlying FSEventStream fails to start. This fixes #37

Updates the README for the limits shown in #46 and #48 .

Where should the reviewer start?

I believe these are non-breaking changes, since the prior signatures did not return any value. Also it is helpful that the README notes this is an unstable API.

How should this be manually tested?

The included test case checks against issue #48 - both validating the limit of 4096 paths, and ensuring the error is propagated successfully.

@arp242 arp242 merged commit 3899270 into fsnotify:main Oct 14, 2022
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.

wrap.go ignores failure return value from FSEventStreamStart
2 participants