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

Function daemon_proxy_error_response

src/daemon.rs:1148–1157  ·  view source on GitHub ↗
(line: &str, err: &TraceDecayError)

Source from the content-addressed store, hash-verified

1146
1147#[cfg(unix)]
1148fn daemon_proxy_error_response(line: &str, err: &TraceDecayError) -> Option<JsonRpcResponse> {
1149 let request = serde_json::from_str::<JsonRpcRequest>(line).ok()?;
1150 request.id.map(|id| {
1151 JsonRpcResponse::error(
1152 id,
1153 ErrorCode::InternalError,
1154 format!("TraceDecay daemon connection failed: {err}"),
1155 )
1156 })
1157}
1158
1159#[cfg(not(unix))]
1160pub async fn proxy_stdio_to_daemon(

Callers 1

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected