You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working in a strict wasm32-unknown-unknown environment, and I've been having a hard time with exceptions from the vm, as when you print them the string is not very useful at all. I just found vm.print_exception and it has actually useful information in it. This method works great if println works in you environment, but in the wasm32-unknown-unknown environment I'm in I can't use the println macro directly. It would be great if the RustPython errors had a method called something like to_readable_string or something that will do the same thing as vm.print_exception, but instead return the error so that it can be dealt with in other ways.
The text was updated successfully, but these errors were encountered:
I've been working in a strict wasm32-unknown-unknown environment, and I've been having a hard time with exceptions from the vm, as when you print them the string is not very useful at all. I just found
vm.print_exception
and it has actually useful information in it. This method works great ifprintln
works in you environment, but in the wasm32-unknown-unknown environment I'm in I can't use theprintln
macro directly. It would be great if the RustPython errors had a method called something liketo_readable_string
or something that will do the same thing asvm.print_exception
, but instead return the error so that it can be dealt with in other ways.The text was updated successfully, but these errors were encountered: