I'm working on an error command (#49) to report if the last command failed, but I'm unsure of how commands report their errors. I've looked through the Wasi, WasiResult, and Console types, but can't find how commands report their exit status.
Should I be changing the Console.error() function to set a flag that I can then check in the error command? Or should I not be changing the types that are already there?