Skip to content

Output uncaught errors to stderr rather than stdout #212

@SkyyySi

Description

@SkyyySi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions