wizer
wizer copied to clipboard
Support suppressing wasm backtrace output on non-zero exit code
When using Wizer as part of a build process, it's not always desirable to have the Wasm backtrace dumped if the guest code didn't exit successfully.
Would anything speak against adding a "silent" mode, where Wizer just forwards the exit code, but doesn't otherwise print anything itself?
Do you mean for the CLI or the library?
Both, ideally, though for my immediate need the CLI would be more important.
For the library, it is up to the caller: either print the full error chain (which includes the wasm trap) or don't when you get an error from Wizer.
For the CLI, we can add a --quiet mode that makes the CLI do that.
Oh, of course, I can just change the error handling in the embedding, good point :)
A --quiet mode for the CLI sounds great, though!