The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(gitbooks): simplify module call error handling
Steven Enamakelf1e01e675bbb
diff --git a/crates/openhuman-core/src/tools/impl/network/gitbooks.rs b/crates/openhuman-core/src/tools/impl/network/gitbooks.rsindex 041a307cb3..d24c57f1a4 100644--- a/crates/openhuman-core/src/tools/impl/network/gitbooks.rs+++ b/crates/openhuman-core/src/tools/impl/network/gitbooks.rs@@ -4,7 +4,7 @@use crate::{config::Config,mcp::http_client::redact_endpoint,- modules::client::{ModuleCallError, ModuleClient},+ modules::client::ModuleClient,};use async_trait::async_trait;use serde_json::{json, Value};@@ -232,11 +232,7 @@ async fn configured_call(.rendered.map(tinymcp::tools::tool_result).unwrap_or_else(|| ToolResult::error(format!("{label} failed: empty module result"))),- Ok(call) => ToolResult::error(format!(- "{label} failed: {}",- call.error_message- .unwrap_or_else(|| "MCP server call failed".to_owned())- )),+ Ok(_) => ToolResult::error(format!("{label} failed: MCP server call failed")),Err(error) => ToolResult::error(format!("{label} failed: {error}")),}}