This PR removes hard panics in template loader initialization paths and replaces them with graceful error handling:
LoadTemplatesWithTags no longer panics when waitgroup creation fails.LoadTemplatesWithTags no longer panics when dialers for ExecutionId are missing.Added regression test:
TestLoadTemplatesWithTags_NoDialers_NoPanicProof:
go test ./pkg/catalog/loader -run 'TestLoadTemplatesWithTags_NoDialers_NoPanic|TestLoadTemplates|TestRemoteTemplates' -count=1
ok github.com/projectdiscovery/nuclei/v3/pkg/catalog/loader 0.608s
dev/claim #6674
New Features
Bug Fixes
tyeungchukong-gmail-com
@tyeungchukong-gmail-com
ProjectDiscovery
@projectdiscovery
Madhavan Deepak
@Madhavan-Deepak