summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs8
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);
}
}