Open
Bug 1908551
Opened 11 months ago
Updated 10 months ago
Use ErrorResult for internal errors
Categories
(Toolkit :: UniFFI Bindings, enhancement)
Toolkit
UniFFI Bindings
Tracking
()
NEW
People
(Reporter: bdk, Unassigned)
Details
When UniFFI returns an internal error, it serializes an error message into the RustBuffer
. Right now, to get the error message we convert the RustBuffer
into an ArrayBuffer
, send it to JS, then have the JS code extract/construct the string. It would be more straightforward to extract the error message in the C++ code and pass it to ErrorResult.ThrowUnknownError
.
You need to log in
before you can comment on or make changes to this bug.
Description
•