Finish a progress bar with a warning message. This clears the progress bar and displays a warning message in yellow. # Arguments `pb` - The progress bar to finish `message` - The warning message to display
(pb: &ProgressBar, message: &str)
| 266 | /// * `pb` - The progress bar to finish |
| 267 | /// * `message` - The warning message to display |
| 268 | pub fn finish_warning(pb: &ProgressBar, message: &str) { |
| 269 | pb.set_style(warning_style()); |
| 270 | pb.finish_with_message(message.to_string()); |
| 271 | emit_if_hidden(pb, "⚠", message); |
| 272 | } |
| 273 | |
| 274 | /// Finish and completely clear a progress bar from the terminal. |
| 275 | /// |