This PR addresses issue #6674 by replacing panic calls with proper error handling in the template loader.
panic with fmt.Errorf and updated LoadTemplatesWithTags, LoadTemplates, and Load to return errors.Verified with:
go build ./...go test ./pkg/catalog/loader/... (Result: PASS)/claim #6674
Bug Fixes
Tests
Refactor
Alessandro Anello
@AleAnee
ProjectDiscovery
@projectdiscovery
Madhavan Deepak
@Madhavan-Deepak