fix: continue aot error handlers after undefined#1921
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughIn ChangesFix: AOT onError chain + mapResponse guard
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #1900
In the AOT route error path, global
mapResponsehooks were run after everyonErrorhandler, even when the handler returnedundefined. That let a logging-onlyonErrorbe mapped into a response and prevented lateronErrorhandlers from producing the intended error response.This only runs the error-path
mapResponsechain when the currentonErrorhandler actually returned a value.undefinedkeeps its existing meaning: the error was not handled yet, so the chain should continue.Verification:
Summary by CodeRabbit