(line: &str, err: &TraceDecayError)
| 1146 | |
| 1147 | #[cfg(unix)] |
| 1148 | fn 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))] |
| 1160 | pub async fn proxy_stdio_to_daemon( |
no test coverage detected