mirror of
https://github.com/haraldh/chainerror.git
synced 2025-05-29 21:18:07 +02:00
feat: removed feature display-cause
`display-cause` can be turned on with the `{:#}` format specifier
This commit is contained in:
parent
b2a62b2f55
commit
4eae3da3c1
4 changed files with 11 additions and 20 deletions
|
@ -51,6 +51,10 @@ fn func1() -> ChainResult<(), Func1Error> {
|
|||
|
||||
fn main() {
|
||||
if let Err(e) = func1() {
|
||||
eprintln!("\nDisplay Error {{}}:\n{}", e);
|
||||
|
||||
eprintln!("\nAlternative Display Error {{:#}}:\n{:#}", e);
|
||||
|
||||
eprintln!("\nDebug Error {{:?}}:\n{:?}", e);
|
||||
|
||||
eprintln!("\nAlternative Debug Error {{:#?}}:\n{:#?}\n", e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue