Skip to content

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

refactor(core): adjust legacy handler error formatting

Steven Enamakel148d131a0a92
diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rs
index 19680613bf..f1bea3d7ff 100644
--- a/crates/openhuman-core/src/core/all.rs
+++ b/crates/openhuman-core/src/core/all.rs
@@ -149,10 +149,9 @@ impl ControllerEntry {
/// Decode params with a bound runtime parser, when this entry has one.
pub fn decode_params(&self, params: Map<String, Value>) -> Result<(), String> {
match &self.handler {
- EntryHandler::Legacy(_) => Err(format!(
- "{} has no bound parser",
- self.schema.method_name()
- )),
+ EntryHandler::Legacy(_) => {
+ Err(format!("{} has no bound parser", self.schema.method_name()))
+ }
EntryHandler::Bound(handler) => handler.decode_params(params),
}
}