Replaced panic() calls in LoadTemplatesWithTags with proper error returns, allowing callers to handle failures gracefully instead of crashing.
/claim #6674
pkg/catalog/loader/loader.goLoadTemplates() signature to return ([]*templates.Template, error)LoadTemplatesWithTags() signature to return ([]*templates.Template, error)panic("could not create wait group") with return nil, fmt.Errorf(...)panic("dialers with executionId ... not found") with return nil, fmt.Errorf(...)Load() to handle error from LoadTemplates()internal/runner/lazy.goGetLazyAuthFetchCallback to handle error from LoadTemplates()pkg/protocols/common/automaticscan/util.goLoadTemplatesWithTags wrapper to propagate error from store methodfmt.Errorf for error conditionsdev branchfayanwubian-hue
@fayanwubian-hue
ProjectDiscovery
@projectdiscovery
Madhavan Deepak
@Madhavan-Deepak