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

Function partial_install_error

atomic-cli/src/commands/agent/enable.rs:673–683  ·  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

671/// Split out so the wording and the non-zero exit can be tested without a
672/// repository, a network, or a package to break.
673fn partial_install_error(degraded: &[(String, String)]) -> CliError {
674 let names: Vec<&str> = degraded.iter().map(|(n, _)| n.as_str()).collect();
675 CliError::remote_error(
676 format!(
677 "integration package install failed for {} — built-in hooks were installed, \
678 but the agent's skills and prompt are missing",
679 names.join(", ")
680 ),
681 None,
682 )
683}
684
685#[cfg(test)]
686mod tests {

Calls 3

collectMethod · 0.45
iterMethod · 0.45
as_strMethod · 0.45