Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(errors): Print backtrace when RUST_BACKTRACE=1 #2189

Merged
merged 1 commit into from
Oct 22, 2024

Commits on Oct 22, 2024

  1. feat(errors): Print backtrace when RUST_BACKTRACE=1

    The `anyhow` crate we use for error handling adds stack backtraces errors whenever [certain standard environment variables](https://doc.rust-lang.org/std/backtrace/index.html#environment-variables) are set (e.g. when `RUST_BACKTRACE=1`).
    
    Modify our error-printing logic to include these stack backtraces when printing errors that crash Sentry CLI, so that users can add this information to bug reports.
    
    Closes #2187
    szokeasaurusrex committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    89378e6 View commit details
    Browse the repository at this point in the history