Skip to content

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

fix(keyring): include source error in invalid utf8 variant

Steven Enamakelb9b18662b30e
diff --git a/crates/openhuman-core/src/security/keyring/ops.rs b/crates/openhuman-core/src/security/keyring/ops.rs
index 66cd82c184..6614441fc0 100644
--- a/crates/openhuman-core/src/security/keyring/ops.rs
+++ b/crates/openhuman-core/src/security/keyring/ops.rs
@@ -73,8 +73,9 @@ pub fn get(user_id: &str, key: &str) -> Result<Option<String>, KeyringError> {
.map_err(storage_error)?;
value
.map(|bytes| {
- String::from_utf8(bytes.to_vec()).map_err(|_| KeyringError::InvalidUtf8 {
+ String::from_utf8(bytes.to_vec()).map_err(|source| KeyringError::InvalidUtf8 {
key: key.to_string(),
+ source,
})
})
.transpose()