wrap-cli icon indicating copy to clipboard operation
wrap-cli copied to clipboard

Errors thrown in wrappers and WasmWrapper.ts are thrown instead of returned as errors in InvokeResult

Open krisbitney opened this issue 3 years ago • 3 comments

Describe the bug When Wasm wrappers encounter errors, the errors are not returned in InvokeResult. Instead, they are thrown. I'm not sure if this is intentional.

Expected behavior I assumed these errors would be returned in InvokeResult

Screenshots / logs Screen Shot 2022-10-10 at 7 01 46 PM

Screen Shot 2022-10-10 at 6 58 02 PM

Relevant environment details:

  • OS: MacOS with M1
  • Rust Wasm wrapper
  • Jest test suite

krisbitney avatar Oct 10 '22 14:10 krisbitney

I think these are related https://github.com/polywrap/toolchain/issues/701 and would like to work on a game plan for this - @krisbitney are you down to jam about it this week?

cbrzn avatar Oct 18 '22 18:10 cbrzn

I think these are related #701 and would like to work on a game plan for this - @krisbitney are you down to jam about it this week?

Yeah, sounds good! I have a lot of time open today and tomorrow. Is there any particular time or day that works well for you, or should we just try to catch each other online?

krisbitney avatar Oct 19 '22 03:10 krisbitney

will dm you :-D @krisbitney

cbrzn avatar Oct 19 '22 14:10 cbrzn