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.

chore(log): ses logging (#1671)

Sean Ayee4d917db62fe
diff --git a/rust/cloud-storage/notification/src/outbound/email.rs b/rust/cloud-storage/notification/src/outbound/email.rs
index dd80a8f2df..8860235e60 100644
--- a/rust/cloud-storage/notification/src/outbound/email.rs
+++ b/rust/cloud-storage/notification/src/outbound/email.rs
@@ -71,7 +71,13 @@ impl EmailServiceOps for aws_sdk_sesv2::Client {
.destination(dest)
.content(email_content)
.send()
- .await?;
+ .await
+ .map_err(|e| {
+ rootcause::report!(
+ "SES send failed: {}",
+ aws_sdk_sns::error::DisplayErrorContext(&e)
+ )
+ })?;
Ok(())
}