From c65101ade6765afb805822c30994ececfacefc77 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 22 May 2021 22:01:52 +0200 Subject: Print error's root cause Give more context about the error produced. Trying to figure out how to only display this if there is a root cause, but I'll work that out later. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 98dfa33..ac730fb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,7 @@ async fn main() { match run().await { Ok(_) => (), Err(e) => { - eprintln!("error: {}", e); + eprintln!("error: {}: {}", e, e.root_cause()); process::exit(exitcode::SOFTWARE); }, -- cgit v1.2.3