cli/
exit_with_error.rs

1use console::style;
2use std::{fmt::Display, process};
3
4pub fn exit_with_error<E: Display>(error: E) -> ! {
5    eprintln!("{} {:#}", style("[ERROR]").red().bold(), error,);
6    process::exit(1)
7}