fn print_err_and_exit(err: Error) -> ! {
	eprintln!("{} {}", Red.bold().paint("error:"), err);
	err.chain().skip(1).for_each(|cause| {
		eprintln!("\t{} {}", Red.bold().paint("caused by:"), cause);
	});

	process::exit(1)
}
/// Neatly print out an error and then exit with the desired exit code
Neatly print out an error and then exit with the desired exit code
Neatly print out an error and then exit with the desired exit code
fn print_err_and_exit(err: Error) -> ! {
	eprintln!("{} {}", Red.bold().paint("error:"), err);
	err.chain().skip(1).for_each(|cause| {
		eprintln!("\t{} {}", Red.bold().paint("caused by:"), cause);
	});
	process::exit(1)
}
fn print_err_and_exit ( err : Error ) -> ! { eprintln ! ( " " Red bold ( ) paint ( " " ) err ) ; err . chain ( ) . skip ( 1 ) . for_each ( | cause | { eprintln ! ( " \t " Red bold ( ) paint ( " " ) cause ) ; } ) ; process :: exit ( 1 ) }
Neatly print out an error and then exit with the desired exit code
Neatly print out an error and then exit with the desired exit code
err
Error