From 34ddec75936a7afd17af50954e7185026e79e9ff Mon Sep 17 00:00:00 2001 From: Naz Date: Wed, 6 Aug 2025 16:04:54 +0100 Subject: =?UTF-8?q?=E2=9C=A8feat:=20improve=20error=20message=20formatting?= =?UTF-8?q?=20with=20colored=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 7840fae..3eb7e95 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ -use std::path::PathBuf; - use clap::Parser; +use colored::Colorize; +use std::path::PathBuf; use zap_rs::{AppImage, Cli, Command, PackageManager, Result, Source, SourceMetadata}; @@ -35,7 +35,7 @@ async fn run() -> Result<()> { #[tokio::main] async fn main() { if let Err(e) = run().await { - eprintln!("Error: {e}"); + eprintln!("{} {}", "Error:".red().bold(), e); std::process::exit(1); } } -- cgit v1.2.3