dtolnay / dtolnay/anyhow

Option to print error with causes multiline but no backtrace

Open
#300 0 comments 6 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
6.7k
Forks
224
PR merge metrics
No merged PRs in 30d

Description

There are for options to print `anyhow::Error`:
* only the message `{}`
* single line causes `{:#}`
* causes and backtrace `{:?}`
* debug `{:#?}`

There's no way to print causes in multiple lines and no backtrace.

Possible API:

```
impl Error {
/// Multiline display: output the message, the causes, but no backtrace even if captured.
pub fn display_no_backtrace(&self) -> impl Display { ... }
}
```

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.