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

Error codes in native modules #563

Open
gbryant-arm opened this issue Nov 10, 2022 · 0 comments
Open

Error codes in native modules #563

gbryant-arm opened this issue Nov 10, 2022 · 0 comments
Labels
always-refactoring A refactoring/code quality change to the Veracruz codebase documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers

Comments

@gbryant-arm
Copy link
Contributor

Motivation
Native modules can fail, and when they do they return a FileSystemResult, which contains a WASI's ErrNo.
ErrNo is an enumerate that defines many error codes, but it can be hard in practice to find an error code that matches the error at hand.

Solutions

  • Pick a default WASI error code for native modules (Canceled?) and stick to it (document that)
  • Change the return type?
@gbryant-arm gbryant-arm added enhancement New feature or request documentation Improvements or additions to documentation always-refactoring A refactoring/code quality change to the Veracruz codebase good first issue Good for newcomers labels Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
always-refactoring A refactoring/code quality change to the Veracruz codebase documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant