Skip to content

Don't show backtrace for errors when RUST_BACKTRACE is set #1956

@bjorn3

Description

@bjorn3

Describe the problem you are trying to solve

I have RUST_BACKTRACE set globally, because I always want to get backtraces when for example rustc or my own program panics. However I don't need any backtraces for simple errors, like for running rustup component add rls --toolchain nightly when rls is not available for the latest nightly.

Describe the solution you'd like

Don't show baktraces for erros when RUST_BACKTRACE is set. Maybe use RUSTUP_BACKTRACE instead or RUST_LOG=err.

Notes

Metadata

Metadata

Assignees

No one assigned

    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