Skip to content

[WIP]: feat: add forwardError option to enable error forwarding to next middleware#2259

Draft
bjohansebas wants to merge 2 commits intonextfrom
feature/forwardError
Draft

[WIP]: feat: add forwardError option to enable error forwarding to next middleware#2259
bjohansebas wants to merge 2 commits intonextfrom
feature/forwardError

Conversation

@bjohansebas
Copy link
Member

Summary

While it works fine in Express, I’m not sure how it will behave in other frameworks, so testing is in progress.

What kind of change does this PR introduce?

Did you add tests for your changes?

Does this PR introduce a breaking change?

If relevant, what needs to be documented once your changes are merged or what have you already documented?

@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.56%. Comparing base (52e218d) to head (29335cb).

Files with missing lines Patch % Lines
src/middleware.js 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next    #2259      +/-   ##
==========================================
- Coverage   95.67%   95.56%   -0.12%     
==========================================
  Files          13       13              
  Lines         901      901              
  Branches      263      263              
==========================================
- Hits          862      861       -1     
- Misses         39       40       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Yeah, not ever frameworks supports it, so we should add this option to docs and write which frameworks support it

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.

2 participants