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

Function validation_refusal

atomic-cli/src/commands/rpc.rs:1279–1286  ·  view source on GitHub ↗

Evidence refusals over the wire are user-fixable gate errors (exit 2), not generic service refusals (exit 1).

(error: CliError)

Source from the content-addressed store, hash-verified

1277/// Evidence refusals over the wire are user-fixable gate errors (exit 2), not
1278/// generic service refusals (exit 1).
1279fn validation_refusal(error: CliError) -> CliError {
1280 match error {
1281 CliError::ServiceRefusal { message } if message.contains("atomic:INVALID_ARGUMENT:") => {
1282 validation_failed(message)
1283 }
1284 other => other,
1285 }
1286}
1287
1288fn evidence_cli_error(error: intent_evidence::EvidenceError) -> CliError {
1289 match error {

Callers

nothing calls this directly

Calls 2

validation_failedFunction · 0.50
containsMethod · 0.45

Tested by

no test coverage detected