Error messages for spawned processes don't include exit status and/or stdout #291
Labels
bug
Something isn't working
PR attached
there's a PR open for this issue
to-do
stuff that needs to happen, so plz do it k thx
Milestone
🐛 Bug description
One issue we've run into with Cargo a lot is that processes inevitably fail for really weird reasons under really weird conditions. Currently it looks like wasm-pack will ferry along the stderr of a spawned process if the exit status doesn't indicate success, but this can often be confusing in situations such as:
Cargo's got some helpers for conveniently executing processes and wrapping it all up in an error if the process isn't successful while forwarding along all the relevant information necessary to display about the failed process.
I think that a good UI can also be preserved by perhaps doing something like whitelisting exit statuses to "if it exits with this then we don't need to display this as we know stderr contains useful information" (or something like that)
The text was updated successfully, but these errors were encountered: