From 1fddcc372196466799789350e7950cef1a38d35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 9 May 2020 21:09:46 +0200 Subject: refactor(cli): unify display of errors from Rust and JS (#5183) --- cli/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cli/lib.rs') 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); } } -- cgit v1.2.3