Open guenther-brunthaler opened 3 years ago
The fflush() C API call in stdoutFlush(WrenVM*) should check the return code and throw an exception if it is nonzero.
In particular
$ cat test.wren import "io" for Stdout System.write("Hello, world!\n") Stdout.flush() $ wren-cli test.wren > /dev/full ; echo "return code = $?" return code = 0
There is currently no error message to indicate the output error, nor a failure return code.
@guenther-brunthaler Could you test?
The fflush() C API call in stdoutFlush(WrenVM*) should check the return code and throw an exception if it is nonzero.
In particular
There is currently no error message to indicate the output error, nor a failure return code.