Skip to content

ToNapiError #348

@adespawn

Description

@adespawn

The current error handling schema requires wrapping the Rust code in helper functions. As discussed, we can consider extending the NAPI-RS to contain something like the ToNapiError trait, which can be inside Results, instead of a single fixed error type as is the case right now.

  1. Create an issue about that in Napi-rs.
  2. If this is not implemented by the maintainer in a reasonable amount of time, we may consider implementing this on our own.

Metadata

Metadata

Assignees

No one assigned

    Labels

    externalClosing of this issue would require changes to external libraries

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions