MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / err

Method err

nodedb/src/control/server/resp/codec.rs:47–49  ·  view source on GitHub ↗

Create an error response.

(msg: impl Into<String>)

Source from the content-addressed store, hash-verified

45
46 /// Create an error response.
47 pub fn err(msg: impl Into<String>) -> Self {
48 Self::Error(msg.into())
49 }
50
51 /// Create an integer response.
52 pub fn integer(n: i64) -> Self {

Callers 2

surface_failureFunction · 0.45
handle_commitFunction · 0.45

Calls 1

ErrorEnum · 0.85

Tested by

no test coverage detected