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

Function validation_failed

atomic-cli/src/commands/memory/mod.rs:183–187  ·  view source on GitHub ↗

A validation-failure error: the canonical gate reported a non-conforming node. Kept as a `Parser`-free helper so `main.rs`'s `err.exit_code()` fires with a distinct, user-fixable exit code (2, a usage/authoring error) rather than the internal-bug code. Copied verbatim from `intent/mod.rs`.

(message: impl Into<String>)

Source from the content-addressed store, hash-verified

181/// with a distinct, user-fixable exit code (2, a usage/authoring error) rather
182/// than the internal-bug code. Copied verbatim from `intent/mod.rs`.
183pub(crate) fn validation_failed(message: impl Into<String>) -> crate::error::CliError {
184 crate::error::CliError::InvalidArgument {
185 message: message.into(),
186 }
187}
188
189#[cfg(test)]
190mod tests {

Callers 2

runMethod · 0.70
runMethod · 0.70

Calls

no outgoing calls

Tested by 1

runMethod · 0.56