Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(cli): map registry init errors to strings

Steven Enamakel6c4cf0409ee6
diff --git a/crates/openhuman-core/src/core/cli.rs b/crates/openhuman-core/src/core/cli.rs
index 221806b54f..6b46851664 100644
--- a/crates/openhuman-core/src/core/cli.rs
+++ b/crates/openhuman-core/src/core/cli.rs
@@ -422,10 +422,13 @@ fn run_call_command(args: &[String]) -> Result<()> {
&& crate::agent_registry::host_definition::AgentDefinitionRegistry::global()
.is_none()
{
- let config = crate::config::Config::load_or_init().await?;
+ let config = crate::config::Config::load_or_init()
+ .await
+ .map_err(|error| error.to_string())?;
crate::agent_registry::host_definition::AgentDefinitionRegistry::init_global(
&config.workspace_dir,
- )?;
+ )
+ .map_err(|error| error.to_string())?;
}
let dispatch = DispatchCtx::process_default();
let dispatch = if headless_agent_chat {