You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amethyst/src/mods/strs.rs

25 lines
651 B
Rust

3 years ago
use ansi_term::Colour;
use std::process;
pub fn inf(a: std::string::String){
println!("{} {}",
Colour::Purple.bold().paint("❖"),
Colour::White.bold().paint(a));
3 years ago
}
pub fn err_unrec(a: std::string::String) {
println!("{} {} {}",
Colour::Red.bold().paint("✖ Unrecoverable error:"),
Colour::Red.paint(a),
Colour::Red.bold().paint("Terminating."));
process::exit(1);
}
// we havent actually used this one yet
pub fn err_rec(a: std::string::String) {
3 years ago
println!("{} {}",
Colour::Yellow.bold().paint("⚠ WARNING:"),
3 years ago
Colour::Yellow.paint(a));
}