The error a partial install ends with. Split out so the wording and the non-zero exit can be tested without a repository, a network, or a package to break.
(degraded: &[(String, String)])
| 760 | /// Split out so the wording and the non-zero exit can be tested without a |
| 761 | /// repository, a network, or a package to break. |
| 762 | fn partial_install_error(degraded: &[(String, String)]) -> CliError { |
| 763 | let names: Vec<&str> = degraded.iter().map(|(n, _)| n.as_str()).collect(); |
| 764 | CliError::remote_error( |
| 765 | format!( |
| 766 | "integration package install failed for {} — built-in hooks were installed, \ |
| 767 | but the agent's skills and prompt are missing", |
| 768 | names.join(", ") |
| 769 | ), |
| 770 | None, |
| 771 | ) |
| 772 | } |
| 773 | |
| 774 | #[cfg(test)] |
| 775 | mod tests { |