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

add custom error type #1

Merged
merged 1 commit into from
Aug 27, 2024
Merged

add custom error type #1

merged 1 commit into from
Aug 27, 2024

Conversation

999eagle
Copy link
Contributor

this adds a very basic custom error type returned by the functions in crate::api::OpenShockAPI. that way, trait bounds like Send and Sync can be derived automatically (which isn't possible with the Box<dyn Error>) and it's much easier to correctly handle the errors when using this crate.

@LostQuasar
Copy link
Owner

Looks good I'll test the changes and get back to you

@LostQuasar LostQuasar merged commit 21c9b2f into LostQuasar:main Aug 27, 2024
1 check failed
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