Proposed Changes

  • Changed LoadTemplates and LoadTemplatesWithTags to return ([]*templates.Template, error) instead of []*templates.Template
  • Replaced panic() calls with proper error returns when dialers are missing or waitgroup creation fails
  • Updated Load() function and all callers to handle the new error returns
  • Updated benchmark tests to handle the new return values

Proof

go test ./pkg/catalog/loader -count=1 ok github.com/projectdiscovery/nuclei/v3/pkg/catalog/loader 1.545s

Checklist

  • PR created against the dev branch
  • Tests pass (go test ./pkg/catalog/loader)
  • Code compiles (go build ./…)

/claim #6674

Summary by CodeRabbit

  • Bug Fixes
    • Improved error handling for template and configuration loading to properly report initialization failures instead of silently ignoring them.
    • Enhanced error propagation throughout the system to surface loader errors earlier and prevent silent failures.

Claim

Total prize pool $200
Total paid $0
Status Pending
Submitted March 01, 2026
Last updated March 01, 2026

Contributors

JI

jiangjiang5757-cmyk

@jiangjiang5757-cmyk

100%

Sponsors

PR

ProjectDiscovery

@projectdiscovery

$100
MA

Madhavan Deepak

@Madhavan-Deepak

$100