fix(loader): replace panic with propagated error when dialers are missing#7030
fix(loader): replace panic with propagated error when dialers are missing#7030juzigu40-ui wants to merge 2 commits intoprojectdiscovery:devfrom
Conversation
Neo - PR Security ReviewNo security issues found Highlights
Comment |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
WalkthroughThis change introduces error propagation to template loading functions. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~15 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 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
LoadTemplatesWithTagswhen dialers are missing with a structured error returnfmt.ErrorfLoadTemplatesWithTagserrors through automatic scan utilityLoadTemplatesbackward-compatible by logging and returning an empty set on load failureValidation
go test ./pkg/catalog/loader ./pkg/protocols/common/automaticscan -count=1Ref: #6674
Summary by CodeRabbit