projectdiscovery/nuclei · error · ErrNoTemplatesFound
%w in path %q
Error message
%w in path %q
What it means
Error "%w in path %q" thrown in projectdiscovery/nuclei.
Source
Thrown at pkg/catalog/disk/find.go:88
if c.templatesFS == nil {
var err error
target, err = c.convertPathToAbsolute(target)
if err != nil {
return nil, errors.Wrapf(err, "could not find template file")
}
}
if strings.Contains(target, "*") {
globMatches, err := c.findGlobPathMatches(target, processed)
if err != nil {
return nil, errors.Wrap(err, "could not globbing path")
}
if len(globMatches) > 0 {
return globMatches, nil
} else {
return globMatches, fmt.Errorf("%w in path %q", ErrNoTemplatesFound, target)
}
}
// `target` is either a file or a directory
match, file, err := c.findFileMatches(target, processed)
if err != nil {
return nil, errors.Wrap(err, "could not find file")
}
if file {
if match != "" {
return []string{match}, nil
}
return nil, nil
}
// Recursively walk down the Templates directory and run all
// the template file checksView on GitHub (pinned to 265b3a3dec)
When it happens
Trigger: Thrown at pkg/catalog/disk/find.go:88 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of projectdiscovery/nuclei@265b3a3dec (2026-08-15).
Data as JSON: /api/errors/020426f2f8507e6a.
Report an issue: GitHub.