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.

update claude to prefer anyhow::bail (#915)

Will Hutchinson51e202fc0ac2
diff --git a/rust/cloud-storage/CLAUDE.md b/rust/cloud-storage/CLAUDE.md
index 9d45628474..aaa015a61c 100644
--- a/rust/cloud-storage/CLAUDE.md
+++ b/rust/cloud-storage/CLAUDE.md
@@ -243,11 +243,13 @@ The migration included comprehensive indexes:
- Always run tests between changes that involve changes to db queries
+### Rust Error Handling
+
+- Prefer `anyhow::bail!("error message")` over `Err(anyhow::anyhow!("error message"))`
+- Use `bail!` for early returns with errors - it's more concise and idiomatic
+
## Development Memories
### DB Crate Changes
- When making changes to a db crate you should always update tests, and run prepare
- ||||||| efd8fa30
-- Metadata stored in PostgreSQL
- =======