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

fix: remove unwrap in create_async_runtime #146

Merged
merged 4 commits into from
Sep 13, 2023

Conversation

imor
Copy link
Contributor

@imor imor commented Sep 13, 2023

What kind of change does this PR introduce?

Fix

What is the current behavior?

The create_async_runtime method calls unwrap which swallows the real error.

What is the new behavior?

The create_async_runtime method not longer calls unwrap. Full error is no preserved and reported.

Additional context

This is the first of many PRs which will benefit from the change in API introduced in #144. thiserror has also been added to make errors easier to handle.

@imor imor changed the title remove unwrap in create async runtime fix: remove unwrap in create async runtime Sep 13, 2023
@imor imor changed the title fix: remove unwrap in create async runtime fix: remove unwrap in create_async_runtime Sep 13, 2023
@imor imor merged commit 105f26d into main Sep 13, 2023
2 checks passed
@imor imor deleted the feat/no-unwrap-in-create-async-runtime branch September 13, 2023 18:34
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