skin_builder/error.rs
1#[rustfmt::skip]
2
3macro_rules! throw {
4 ($message:expr, exit) => {{
5 color_print::cprintln!("<red,bold>Error:</> {}", $message);
6 std::process::exit(1);
7 }};
8 ($message:expr) => {{
9 color_print::cprintln!("<red,bold>Error:</> {}", $message);
10 }};
11}
12
13pub(crate) use throw;
14
15pub const SKINNER_FILE_NOT_FOUND: &str = "Skinner file not found";
16pub const ERROR_NOT_ROOT: &str = "You must be root to run this command";