Skip to content

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

Merged
szokeasaurusrex merged 1 commit intomasterfrom
szokeasaurusrex/error-backtrace
Oct 22, 2024
Merged

feat(errors): Print backtrace when RUST_BACKTRACE=1#2189
szokeasaurusrex merged 1 commit intomasterfrom
szokeasaurusrex/error-backtrace

Conversation

@szokeasaurusrex
Copy link
Member

The anyhow crate we use for error handling adds stack backtraces errors whenever certain standard 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

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 szokeasaurusrex merged commit 67c267a into master Oct 22, 2024
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/error-backtrace branch October 22, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support RUST_BACKTRACE

2 participants