Skip to content

Give route errors a refId via one envelope helper - #545

Merged
TheGreatAxios merged 9 commits into
mainfrom
cl-7285-25-route-files-emit-an-error-envelope-missing-the-refid
Aug 31, 2026
Merged

Give route errors a refId via one envelope helper#545
TheGreatAxios merged 9 commits into
mainfrom
cl-7285-25-route-files-emit-an-error-envelope-missing-the-refid

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

  • Route hub errors through makeErrorEnvelope so the wire includes code, userMessage, and refId.
  • Add check:error-envelope so a local { error: { code, message } } factory cannot regrow.

Test plan

  • bun test scripts/checks/test/error-envelope.test.ts
  • bun run check:error-envelope
  • CI

Closes CL-7285

@TheGreatAxios
TheGreatAxios merged commit 1a38e53 into main Aug 31, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant