{"record":{"id":"020426f2f8507e6a","repo":"projectdiscovery/nuclei","slug":"w-in-path-q","errorCode":null,"errorMessage":"%w in path %q","messagePattern":"%w in path %q","errorType":"validation","errorClass":"ErrNoTemplatesFound","httpStatus":null,"severity":"error","filePath":"pkg/catalog/disk/find.go","lineNumber":88,"sourceCode":"\n\tif c.templatesFS == nil {\n\t\tvar err error\n\t\ttarget, err = c.convertPathToAbsolute(target)\n\t\tif err != nil {\n\t\t\treturn nil, errors.Wrapf(err, \"could not find template file\")\n\t\t}\n\t}\n\n\tif strings.Contains(target, \"*\") {\n\t\tglobMatches, err := c.findGlobPathMatches(target, processed)\n\t\tif err != nil {\n\t\t\treturn nil, errors.Wrap(err, \"could not globbing path\")\n\t\t}\n\n\t\tif len(globMatches) > 0 {\n\t\t\treturn globMatches, nil\n\t\t} else {\n\t\t\treturn globMatches, fmt.Errorf(\"%w in path %q\", ErrNoTemplatesFound, target)\n\t\t}\n\t}\n\n\t// `target` is either a file or a directory\n\tmatch, file, err := c.findFileMatches(target, processed)\n\tif err != nil {\n\t\treturn nil, errors.Wrap(err, \"could not find file\")\n\t}\n\n\tif file {\n\t\tif match != \"\" {\n\t\t\treturn []string{match}, nil\n\t\t}\n\t\treturn nil, nil\n\t}\n\n\t// Recursively walk down the Templates directory and run all\n\t// the template file checks","sourceCodeStart":70,"sourceCodeEnd":106,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/catalog/disk/find.go#L70-L106","documentation":"Error \"%w in path %q\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/catalog/disk/find.go:88 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}