Print an error message to stderr. The message is formatted in red with an X prefix. # Arguments `message` - The message to print # Example ```rust,ignore print_error("Failed to read file"); // Output: ✗ Failed to read file ```
(message: &str)
| 129 | /// // Output: ✗ Failed to read file |
| 130 | /// ``` |
| 131 | pub fn print_error(message: &str) { |
| 132 | crate::logging::printed(crate::logging::Printed::Error, message); |
| 133 | if live::capture(live::Kind::Error, message) { |
| 134 | return; |
| 135 | } |
| 136 | eprintln!("{} {}", error("✗"), error(message)); |
| 137 | } |
| 138 | |
| 139 | /// Print a warning message to stderr. |
| 140 | /// |
no test coverage detected