remove unneeded rpc error message

This commit is contained in:
llama 2025-10-18 09:58:07 +08:00
parent eaa514fb7a
commit 572cbf1043
No known key found for this signature in database
GPG key ID: 0B7543854B9413C3

View file

@ -18,6 +18,7 @@ pub fn write_rust_interface(pool: &DescriptorPool) -> Result<()> {
let mut buf = String::new(); let mut buf = String::new();
buf.push_str("use prost::Message; use anyhow::Context; use anyhow::anyhow;"); buf.push_str("use prost::Message; use anyhow::Context; use anyhow::anyhow;");
// TODO: render as trait for better compiler errors
let (services, _) = get_services(pool); let (services, _) = get_services(pool);
if let Some(s) = services if let Some(s) = services
.into_iter() .into_iter()
@ -108,7 +109,6 @@ pub(crate) async fn handle_rpc<R: ::tauri::Runtime>(
r#" r#"
_ => Err(anyhow!("{method} not implemented"))?, _ => Err(anyhow!("{method} not implemented"))?,
} }
.with_context(|| format!("{method} rpc call failed"))
} }
"#, "#,
) )