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

Function validation_refusal

atomic-cli/src/commands/rpc.rs:1278–1285  ·  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

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

Callers

nothing calls this directly

Calls 2

validation_failedFunction · 0.50
containsMethod · 0.45

Tested by

no test coverage detected