Fixes #6674
Replaces panic calls in LoadTemplatesWithTags with proper error returns when dialers are missing or wait group creation fails.
pkg/catalog/loader/loader.go: Changed LoadTemplates and LoadTemplatesWithTags signatures to return ([]*templates.Template, error). Replaced both panic() calls with fmt.Errorf() returns.internal/runner/lazy.go: Updated caller to handle the new error return from LoadTemplates.pkg/protocols/common/automaticscan/util.go: Updated caller to handle the new error return from LoadTemplatesWithTags.pkg/catalog/loader/loader_bench_test.go: Updated benchmark tests for the new function signatures.go build ./... passes/claim #6674
Bug Fixes
Tests
jpirstin
@jpirstin
ProjectDiscovery
@projectdiscovery
Madhavan Deepak
@Madhavan-Deepak