MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / write_project_open_error

Function write_project_open_error

src/daemon.rs:2068–2075  ·  view source on GitHub ↗
(
    transport: &mut UnixStreamTransport,
    error: &TraceDecayError,
)

Source from the content-addressed store, hash-verified

2066
2067#[cfg(unix)]
2068async fn write_project_open_error(
2069 transport: &mut UnixStreamTransport,
2070 error: &TraceDecayError,
2071) -> Result<()> {
2072 let id = read_json_rpc_request_id(transport).await?;
2073 let response = JsonRpcResponse::error(id, ErrorCode::InternalError, error.to_string());
2074 write_json_rpc_response(transport, &response).await
2075}
2076
2077#[cfg(unix)]
2078async fn read_json_rpc_request_id(

Callers 1

serve_socket_clientFunction · 0.85

Calls 3

read_json_rpc_request_idFunction · 0.85
errorFunction · 0.85
write_json_rpc_responseFunction · 0.85

Tested by

no test coverage detected