mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-11-10 04:01:31 -10:00
`nuclei -validate -t /no/such/path` logged "Could not find template" and then still printed "All templates validated successfully" and exited 0, so a mistyped path in a CI step passed. ValidateTemplates ignored the paths that GetTemplatesPath could not resolve. Count the paths that aren't handled by NotFoundCallback and return the validation error when there is any. Paths the callback resolves are still accepted. Fixes #7949