{"record":{"id":"5a94b6d62d6773c3","repo":"projectdiscovery/nuclei","slug":"no-such-path-found-s","errorCode":null,"errorMessage":"no such path found: %s","messagePattern":"no such path found: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/catalog/disk/path.go","lineNumber":52,"sourceCode":"\n\tif c.templatesFS == nil {\n\t\tcurDirectory, err := os.Getwd()\n\t\tif err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\n\t\ttemplatePath := filepath.Join(curDirectory, templateName)\n\t\tif potentialPath, err := c.tryResolve(templatePath); err != errNoValidCombination {\n\t\t\treturn potentialPath, nil\n\t\t}\n\t}\n\n\ttemplatePath := filepath.Join(config.DefaultConfig.GetTemplateDir(), templateName)\n\tif potentialPath, err := c.tryResolve(templatePath); err != errNoValidCombination {\n\t\treturn potentialPath, nil\n\t}\n\n\treturn \"\", fmt.Errorf(\"no such path found: %s\", templateName)\n}\n\nvar errNoValidCombination = errors.New(\"no valid combination found\")\n\n// tryResolve attempts to load locate the target by iterating across all the folders tree\nfunc (c *DiskCatalog) tryResolve(fullPath string) (string, error) {\n\tif c.templatesFS == nil {\n\t\tif fileutil.FileOrFolderExists(fullPath) {\n\t\t\treturn fullPath, nil\n\t\t}\n\t} else {\n\t\tif _, err := fs.Stat(c.templatesFS, fullPath); err == nil {\n\t\t\treturn fullPath, nil\n\t\t}\n\t}\n\treturn \"\", errNoValidCombination\n}\n","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/catalog/disk/path.go#L34-L70","documentation":"Error \"no such path found: %s\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/catalog/disk/path.go:52 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"}