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

Function evidence_error

atomic-cli/src/commands/intent/validate.rs:192–198  ·  view source on GitHub ↗

Keep repository and I/O failures distinct; every other evidence refusal is a user-fixable gate error (exit 2).

(error: intent_evidence::EvidenceError)

Source from the content-addressed store, hash-verified

190/// Keep repository and I/O failures distinct; every other evidence refusal is
191/// a user-fixable gate error (exit 2).
192fn evidence_error(error: intent_evidence::EvidenceError) -> CliError {
193 match error {
194 intent_evidence::EvidenceError::Repository(error) => CliError::Repository(error),
195 intent_evidence::EvidenceError::Io(error) => CliError::Io(error),
196 other => validation_failed(other.to_string()),
197 }
198}
199
200/// Resolve `urn:atomic:change:<hash>` evidence URNs against the change store at
201/// `repo_root`. One violation per URN that does not resolve. With no repository

Callers

nothing calls this directly

Calls 2

RepositoryClass · 0.85
validation_failedFunction · 0.70

Tested by

no test coverage detected