diff options
| author | Naz <ndpm13@ch-naseem.com> | 2025-08-06 16:04:54 +0100 |
|---|---|---|
| committer | Naz <ndpm13@ch-naseem.com> | 2025-08-06 16:04:54 +0100 |
| commit | 34ddec75936a7afd17af50954e7185026e79e9ff (patch) | |
| tree | 18bc8295ba558ebf70988a993f4626299c48d1bb /src/main.rs | |
| parent | 209dcb3e6f50a6289197b4cb3c78e069c327c21e (diff) | |
✨feat: improve error message formatting with colored output
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |
