this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: pretty print the error messages

+5 -1
+5 -1
src/main.rs
··· 302 302 tar::Tar {} 303 303 } 304 304 305 - fn main() -> Result<(), io::Error> { 305 + fn main() { 306 306 let args = CmprssArgs::parse(); 307 307 match args.format { 308 308 Some(Format::Tar(a)) => command(parse_tar(&a), &a.common_args), ··· 311 311 Some(Format::Bzip2(a)) => command(parse_bzip2(&a), &a.common_args), 312 312 _ => Err(io::Error::new(io::ErrorKind::Other, "unknown input")), 313 313 } 314 + .unwrap_or_else(|e| { 315 + eprintln!("ERROR(cmprss): {}", e); 316 + std::process::exit(1); 317 + }); 314 318 }