Proposed Changes Fixed issue #6674 by replacing panic() calls with proper error handling in the template loading logic.
Key Fixes Replaced panics in pkg/catalog/loader/loader.go and pkg/templates/parser.go.
Resolved “no new variables” error in internal/runner/lazy.go.
Updated function signatures to return error and handled them in the runner.
Proof Verified compilation with go build -o nuclei.exe ./cmd/nuclei (Exit code 0).
nuclei.exe binary generated successfully.
/claim #6674
umarfarooqpny-gmail-com
@umarfarooqpny-gmail-com
ProjectDiscovery
@projectdiscovery
Madhavan Deepak
@Madhavan-Deepak