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

Making the library code safer #5

Merged
merged 7 commits into from
Nov 1, 2023
Merged

Making the library code safer #5

merged 7 commits into from
Nov 1, 2023

Conversation

erikziyunchi
Copy link
Member

@erikziyunchi erikziyunchi commented Oct 21, 2023

This PR is to make the library code safer -- avoiding panic when use library, and better design for WASM to return Err messages.

  • Remove all the .unwrap() from the library code
  • Add more verbose error messages
  • Add ways to pass error msg out from WASM -- move this to an issue where need more discussions to better fit in v1.

Copy link
Contributor

@gaukas gaukas left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@jmwample jmwample left a comment

Choose a reason for hiding this comment

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

Good change!

@erikziyunchi erikziyunchi merged commit 6611747 into main Nov 1, 2023
4 checks passed
@erikziyunchi erikziyunchi deleted the safer-lib branch November 1, 2023 20:26
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.

3 participants