Unverified Commit 53eeff98 authored by Alexandru Vasile's avatar Alexandru Vasile
Browse files

macro: Return `sink.reject()` result


Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>
parent 38f3a9f7
......@@ -331,7 +331,7 @@ impl RpcDescription {
Err(e) => {
#tracing::error!(concat!("Error parsing optional \"", stringify!(#name), "\" as \"", stringify!(#ty), "\": {:?}"), e);
let _e: #err = e.into();
#pending.reject(_e);
#pending.reject(_e)?;
return Err(#sub_err);
}
};
......@@ -355,7 +355,7 @@ impl RpcDescription {
Err(e) => {
#tracing::error!(concat!("Error parsing \"", stringify!(#name), "\" as \"", stringify!(#ty), "\": {:?}"), e);
let _e: #err = e.into();
#pending.reject(_e);
#pending.reject(_e)?;
return Err(#sub_err);
}
};
......@@ -406,7 +406,7 @@ impl RpcDescription {
Err(e) => {
#tracing::error!("Failed to parse JSON-RPC params as object: {}", e);
let _e: #err = e.into();
#pending.reject(_e);
#pending.reject(_e)?;
return Err(#sub_err);
}
};
......
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