From 277e19f4d26b66bbba99b0a3d6539b524dc88830 Mon Sep 17 00:00:00 2001 From: Andrew Mitchell <32021055+mitch292@users.noreply.github.com> Date: Thu, 18 Mar 2021 20:02:29 -0400 Subject: fix(cli/bundle): display anyhow error chain (#9822) --- cli/main.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index 1931c62db..c73da5e06 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -1158,13 +1158,7 @@ fn unwrap_or_exit(result: Result) -> T { match result { Ok(value) => value, Err(error) => { - let msg = format!( - "{}: {}", - colors::red_bold("error"), - // TODO(lucacasonato): print anyhow error chain here - error.to_string().trim() - ); - eprintln!("{}", msg); + eprintln!("{}: {:?}", colors::red_bold("error"), error); std::process::exit(1); } } -- cgit v1.2.3