MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / partial_install_error

Function partial_install_error

atomic-cli/src/commands/agent/enable.rs:762–772  ·  view source on GitHub ↗

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)])

Source from the content-addressed store, hash-verified

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.
762fn 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)]
775mod tests {

Calls 2

iterMethod · 0.45
as_strMethod · 0.45