Skip to content

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

fix(flows): surface catalog storage errors when seeding test flows

Steven Enamakel70a3d5c99d01
diff --git a/crates/openhuman-core/src/flows/store.rs b/crates/openhuman-core/src/flows/store.rs
index c060c88c70..040f248315 100644
--- a/crates/openhuman-core/src/flows/store.rs
+++ b/crates/openhuman-core/src/flows/store.rs
@@ -119,8 +119,18 @@ fn test_seed_flow(config: &Config, flow: &Flow) -> Result<()> {
expires_ms: None,
created_ms: Some(created_ms),
};
- let _: catalog::CatalogStorageReply = call_catalog(config, catalog::storage::PUT, (request,))?;
- Ok(())
+ match super::catalog_storage::call_test_storage::<catalog::CatalogStorageReply, _>(
+ config,
+ catalog::storage::PUT,
+ (request,),
+ )? {
+ catalog::CatalogStorageReply::Value { .. } => Ok(()),
+ catalog::CatalogStorageReply::Error { error } => Err(anyhow!(
+ "CatalogStorage fixture write failed ({}): {}",
+ error.kind,
+ error.message
+ )),
+ }
}
/// Duplicate a workflow through the module's Catalog contract.