Improve registry type mismatch error#1390
Improve registry type mismatch error#1390ansonnazeba wants to merge 1 commit intoMFlowCode:masterfrom
Conversation
Code Review by Qodo
1. Verbose enum repr in error
|
|
Persistent review updated to latest commit 04ddb5e |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe pull request modifies error handling in the parameter registry. The 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1390 +/- ##
==========================================
- Coverage 64.76% 64.75% -0.01%
==========================================
Files 71 71
Lines 18713 18716 +3
Branches 1549 1548 -1
==========================================
+ Hits 12119 12120 +1
- Misses 5638 5641 +3
+ Partials 956 955 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Improved the
ParamRegistrytype mismatch error message when the same parameter is registered with a conflicting type. Previously, the error only reported the parameter name. The new updated message now includes both the existing registered type and the new conflicting type, which makes the issue easier to diagnose.Also updates the existing registry unit test to verify that the enhanced error details are included.
Fixes #N/A
Type of change
Testing
Tested the registry unit tests locally: