Skip to content

Preserve response decoration for middleware errors - #26

Merged
smiggleworth merged 2 commits into
mainfrom
fix/global-middleware-error-responses
Aug 16, 2026
Merged

Preserve response decoration for middleware errors#26
smiggleworth merged 2 commits into
mainfrom
fix/global-middleware-error-responses

Conversation

@smiggleworth

Copy link
Copy Markdown
Contributor

Summary

  • convert errors at the middleware layer where outer wrappers can still decorate the response
  • preserve the existing application error-response contract
  • add a regression for a throwing inner global middleware behind request IDs

Validation

  • npm run check

Closes #25

@smiggleworth
smiggleworth marked this pull request as ready for review August 16, 2026 13:44
Copilot AI lite review requested due to automatic review settings August 16, 2026 13:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@smiggleworth
smiggleworth merged commit 4fffc8a into main Aug 16, 2026
3 checks passed
@smiggleworth
smiggleworth deleted the fix/global-middleware-error-responses branch August 16, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request IDs disappear when downstream global middleware throws

2 participants