Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(email-service): Better log for attachment upload create document failure (#475)

Evan Hutnik4137f7e23228
diff --git a/rust/cloud-storage/email_service/src/util/upload_attachment.rs b/rust/cloud-storage/email_service/src/util/upload_attachment.rs
index 9a4f49cbe7..bd0a644dac 100644
--- a/rust/cloud-storage/email_service/src/util/upload_attachment.rs
+++ b/rust/cloud-storage/email_service/src/util/upload_attachment.rs
@@ -135,7 +135,7 @@ async fn create_dss_document_record(
dss_client
.create_document_internal(request, link.macro_id.0.as_ref())
.await
- .context("Failed to create document record in DSS")
+ .map_err(|e| anyhow::anyhow!("Failed to create document record in DSS: {}", e))
}
/// Uploads the provided data to the presigned URL from the DSS response.