Something went wrong. Try again.
Deployment and lifecycle management for Nix
Something went wrong. Try again.
1234567891011use console::Style;
pub fn error(err: &anyhow::Error) { let style = Style::new().for_stderr().red().bold(); let dim = Style::new().for_stderr().dim(); eprintln!("{} {}", style.apply_to("✗ error:"), err); for cause in err.chain().skip(1) { eprintln!(" {}", dim.apply_to(cause)); }}