Unverified Commit ae438b55 authored by Roman Zeyde's avatar Roman Zeyde
Browse files

Format rpc.rs

parent c80c8368
......@@ -199,7 +199,13 @@ impl Connection {
Ok(match result {
Ok(result) => json!({"jsonrpc": "2.0", "id": id, "result": result}),
Err(e) => {
warn!("rpc #{} {} {:?} failed: {}", id, method, params, e.display_chain());
warn!(
"rpc #{} {} {:?} failed: {}",
id,
method,
params,
e.display_chain()
);
json!({"jsonrpc": "2.0", "id": id, "error": format!("{}", e)})
}
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment