summaryrefslogtreecommitdiff
path: root/cli/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lib.rs')
-rw-r--r--cli/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/lib.rs b/cli/lib.rs
index 957637719..97b497e95 100644
--- a/cli/lib.rs
+++ b/cli/lib.rs
@@ -626,7 +626,12 @@ pub fn main() {
let result = tokio_util::run_basic(fut);
if let Err(err) = result {
- eprintln!("{}", err.to_string());
+ let msg = format!(
+ "{}: {}",
+ colors::red_bold("error".to_string()),
+ err.to_string(),
+ );
+ eprintln!("{}", msg);
std::process::exit(1);
}
}