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

feat: improve error handling #13

Merged
merged 1 commit into from
Jun 11, 2020
Merged

feat: improve error handling #13

merged 1 commit into from
Jun 11, 2020

Conversation

mjmaurer
Copy link
Contributor

pollOnce will now throw a RecordError if an error is specific to a record (like invalid JSON in the meta field)

pollWithInterval has new optional param errorFunc to consume errors. In it's absence, behavior is the same.

Resolves #12

@mjmaurer mjmaurer merged commit b86d94b into master Jun 11, 2020
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.

Make pollWithInterval errors more explicit
1 participant