diff options
author | Andrew Mitchell <32021055+mitch292@users.noreply.github.com> | 2021-03-18 20:02:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 20:02:29 -0400 |
commit | 277e19f4d26b66bbba99b0a3d6539b524dc88830 (patch) | |
tree | f1aa56bf62b547b8823cd2efecc5f87770b1563a /cli/main.rs | |
parent | 7d12dd18992cc58ce9866c2e42d914c8c8cf6d7a (diff) |
fix(cli/bundle): display anyhow error chain (#9822)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 8 |
1 files changed, 1 insertions, 7 deletions
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<T>(result: Result<T, AnyError>) -> 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); } } |