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

Claim

Total prize pool $200
Total paid $0
Status Approved
Submitted March 03, 2026
Last updated March 03, 2026

Contributors

UM

umarfarooqpny-gmail-com

@umarfarooqpny-gmail-com

100%

Sponsors

PR

ProjectDiscovery

@projectdiscovery

$100 pending
MA

Madhavan Deepak

@Madhavan-Deepak

$100 pending