The paths whose bytes are still in the working copy because the deletion could not be performed, shared by both removal paths. A removal that could not delete reports that, and only that: counting such a path as removed is what let an unlink failure read as a success.
(failures: &[String])
| 488 | /// A removal that could not delete reports that, and only that: counting such a |
| 489 | /// path as removed is what let an unlink failure read as a success. |
| 490 | pub(crate) fn print_failed_deletions(failures: &[String]) { |
| 491 | for failure in failures { |
| 492 | print_warning(&format!("Failed to delete {failure}")); |
| 493 | } |
| 494 | if !failures.is_empty() { |
| 495 | print_warning(&format!( |
| 496 | "{} with errors", |
| 497 | format_count(failures.len(), "path") |
| 498 | )); |
| 499 | } |
| 500 | } |
| 501 | |
| 502 | /// The sentence both removal paths end on when a deletion could not be |
| 503 | /// performed: the bytes survive, so the untrack is not complete. |
no test coverage detected