dtolnay / dtolnay/thiserror

Printing the captured backtrace on panic

Open
#294 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
5.5k
Forks
213
PR merge metrics
No merged PRs in 30d

Description

Sorry if this is a duplicate, or there are rustc limitations that I am missing, but when using the nightly `backtrace` feature, I only get the following when panicing

```
thread 'types::s2k::tests::aead_skesk_msg' panicked at src/types/s2k.rs:523:16:
encode: IOError { source: Error { kind: WriteZero, message: "failed to write whole buffer" }, backtrace: Backtrace [{ fn: "std::backtrace_rs::backtrace::libunwind::trace", file: "/rustc/47ecded3525392b77843534bed69b4302f9af8d2/library/std/src/../../backtrace/src/backtrace/libunwind.rs", line: 105 }
....
```

and the actual backtrace is just the short one to where the panic happened. Is there a way to get this printed in a nicer format?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.