When using the yue CLI as an interpreter, it currently always pushes error tracebacks to /dev/stdout, when they should actually go to /dev/stderr. This will ensure that errors actually get displayed on the console, instead of being treated as regular output (e.g. when used in a shell pipeline).
Note that this is only relevant for uncaught errors that cause the interpreter to crash, not for errors handled with pcall / xpcall.
When using the
yueCLI as an interpreter, it currently always pushes error tracebacks to/dev/stdout, when they should actually go to/dev/stderr. This will ensure that errors actually get displayed on the console, instead of being treated as regular output (e.g. when used in a shell pipeline).Note that this is only relevant for uncaught errors that cause the interpreter to crash, not for errors handled with
pcall/xpcall.