fix: hide panic details from clients#86
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe panic-recovery middleware now returns a generic "internal server error" message instead of echoing the detailed panic error to clients. Tests are updated to verify the new response body and panic logging behavior. ChangesPanic Recovery Response Sanitization
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 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 docstrings
🧪 Generate unit tests (beta)
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 |
Summary
internal server errorresponse for recovered panicsTest
go test -race ./...golangci-lint runSummary by CodeRabbit
Release Notes
Bug Fixes
Tests