Unverified Commit 18d81699 authored by Alexandru Vasile's avatar Alexandru Vasile
Browse files

Fix `send_error` to not always return `false`


Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>
parent 9e8f649f
......@@ -156,9 +156,10 @@ impl MethodSink {
if let Err(err) = self.send_raw(json) {
tracing::warn!("Error sending response {:?}", err);
false
} else {
true
}
false
}
/// Helper for sending the general purpose `Error` as a JSON-RPC errors to the client
......
Supports Markdown
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