aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2021-05-22 22:01:52 +0200
committerTeddy Wing2021-05-22 22:01:52 +0200
commitc65101ade6765afb805822c30994ececfacefc77 (patch)
treec9597be09e14b5c9ad4c10e8a345d14a18728613 /src
parent77950849efe38c3a9a2f35ba0a627e9084015840 (diff)
downloadgoogle-calendar-rsvp-c65101ade6765afb805822c30994ececfacefc77.tar.bz2
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.
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
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);
},