Skip to content

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

fix(config): wrap timezone save error with config_save_error

Steven Enamakel5da77528341f
diff --git a/crates/openhuman-core/src/config/ops/ui.rs b/crates/openhuman-core/src/config/ops/ui.rs
index 509d8589be..075856fcc8 100644
--- a/crates/openhuman-core/src/config/ops/ui.rs
+++ b/crates/openhuman-core/src/config/ops/ui.rs
@@ -217,7 +217,7 @@ pub async fn apply_user_timezone(
};
if let Err(error) = config.save().await {
config.user_timezone = previous;
- return Err(error.to_string());
+ return Err(super::config_save_error(error));
}
let chosen = config.user_timezone.as_deref().unwrap_or("device");
log::info!("[config] user time zone set: {chosen}");