Skip to content

fix: capture error cause in serialisation#727

Merged
rvagg merged 1 commit into
masterfrom
rvagg/err-cause-serialisation
Apr 15, 2026
Merged

fix: capture error cause in serialisation#727
rvagg merged 1 commit into
masterfrom
rvagg/err-cause-serialisation

Conversation

@rvagg
Copy link
Copy Markdown
Collaborator

@rvagg rvagg commented Apr 10, 2026

We use cause in our custom error wraps

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
synapse-dev 6e1e96f Commit Preview URL

Branch Preview URL
Apr 10 2026, 03:42 PM

@github-project-automation github-project-automation Bot moved this from 📌 Triage to ✔️ Approved by reviewer in FOC Apr 10, 2026
@hugomrdias
Copy link
Copy Markdown
Member

hugomrdias commented Apr 14, 2026

Why are we serializing errors in synapse, shouldn't we let logging libraries like pino handle that ?

@rvagg
Copy link
Copy Markdown
Collaborator Author

rvagg commented Apr 15, 2026

yeah, downstream you should use a better library, our toJSON are just convenience at this point (this isn't required for dealbot btw, just completeness since we have toJSON already)

@rvagg rvagg merged commit d0f3372 into master Apr 15, 2026
13 checks passed
@rvagg rvagg deleted the rvagg/err-cause-serialisation branch April 15, 2026 07:36
@github-project-automation github-project-automation Bot moved this from ✔️ Approved by reviewer to 🎉 Done in FOC Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

3 participants