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

Better error handling in js api #1363

Open
findolor opened this issue Feb 20, 2025 · 0 comments
Open

Better error handling in js api #1363

findolor opened this issue Feb 20, 2025 · 0 comments
Assignees
Labels
rust Related to rust crates

Comments

@findolor
Copy link
Collaborator

Instead of throwing errors, we can use this object to better handle both errors and success cases

{
    success: bool,
    error: Option<string>,
    data: Option<T>
}
@findolor findolor added the rust Related to rust crates label Feb 20, 2025
@findolor findolor self-assigned this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rust Related to rust crates
Projects
None yet
Development

No branches or pull requests

1 participant