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

refactor!: throw errors instead of returning them #14

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

foxxyz
Copy link
Contributor

@foxxyz foxxyz commented Nov 8, 2022

Per #13, this throws Errors so callers can catch different kinds of errors and respond accordingly.

(Note, if you're planning to release another major version...The code could be greatly simplified by removing support for callbacks. Let me know if you're interested in that and I'd be happy to submit another PR.)

Closes #13

Copy link
Owner

@lacymorrow lacymorrow left a comment

Choose a reason for hiding this comment

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

LGTM++

Thanks for the PR! I'll let you know when I release it.

@lacymorrow lacymorrow merged commit bcac86e into lacymorrow:master Nov 28, 2022
@lacymorrow
Copy link
Owner

Released

@foxxyz
Copy link
Contributor Author

foxxyz commented Nov 29, 2022

Thank you, @lacymorrow!!

@foxxyz foxxyz deleted the throw-errors branch November 29, 2022 04:57
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.

Returning Error instead of throwing?
2 participants