MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / invalid_query

Function invalid_query

fendermint/app/src/tmconv.rs:57–64  ·  view source on GitHub ↗

Response to queries where the input was blatantly invalid.

(err: AppError, description: String)

Source from the content-addressed store, hash-verified

55
56/// Response to queries where the input was blatantly invalid.
57pub fn invalid_query(err: AppError, description: String) -> response::Query {
58 tracing::info!(error = ?err, description, "invalid query");
59 response::Query {
60 code: Code::Err(NonZeroU32::try_from(err as u32).expect("error codes are non-zero")),
61 info: description,
62 ..Default::default()
63 }
64}
65
66pub fn to_deliver_tx(
67 ret: AppliedMessage,

Callers 1

queryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected