new: add .fail() printing to stderr

This commit is contained in:
ad4mx 2022-07-19 19:24:46 +02:00
parent b8fb3c7dff
commit 337bf118d4

View file

@ -223,7 +223,7 @@ impl Spinner {
);
}
/// Deletes the last line of the terminal and prints a failure symbol with a message.
/// Deletes the last line of the terminal and prints a failure symbol with a message to stderr.
///
/// # Example
///
@ -239,7 +239,7 @@ impl Spinner {
///
pub fn fail(mut self, msg: StringLiteral) {
self.stop_spinner_thread();
println!("{} {}", init_color(Some(Color::Red), "".to_string()), &msg);
eprintln!("{} {}", init_color(Some(Color::Red), "".to_string()), &msg);
}
/// Deletes the last line of the terminal and prints a warning symbol with a message.