{"record":{"id":"694b205e7f221645","repo":"slackhq/nebula","slug":"no-default-config-found-at-s-or-s","errorCode":null,"errorMessage":"no default config found at %s or %s","messagePattern":"no default config found at (.+?) or (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"config/default.go","lineNumber":28,"sourceCode":"// If neither file exists an error is returned that names both paths checked.\nfunc DefaultPath() (string, error) {\n\tex, err := os.Executable()\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn defaultPathInDir(filepath.Dir(ex))\n}\n\nfunc defaultPathInDir(dir string) (string, error) {\n\tyamlPath := filepath.Join(dir, \"config.yaml\")\n\tif _, err := os.Stat(yamlPath); err == nil {\n\t\treturn yamlPath, nil\n\t}\n\tymlPath := filepath.Join(dir, \"config.yml\")\n\tif _, err := os.Stat(ymlPath); err == nil {\n\t\treturn ymlPath, nil\n\t}\n\treturn \"\", fmt.Errorf(\"no default config found at %s or %s\", yamlPath, ymlPath)\n}\n","sourceCodeStart":10,"sourceCodeEnd":30,"githubUrl":"https://github.com/slackhq/nebula/blob/dd8f660c0ac37903ec4080ca4d3c861ba9342ceb/config/default.go#L10-L30","documentation":"Error from defaultPathInDir: neither config.yaml nor config.yml exists next to the running executable, and no explicit config path was given. Both candidate paths are named in the message so the user knows exactly where a default config was expected.","triggerScenarios":"Thrown at config/default.go:28 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Place a config.yaml (or config.yml) in the executable's directory","Pass an explicit config path instead of relying on the default"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"dd8f660c0ac37903ec4080ca4d3c861ba9342ceb","analyzedAt":"2026-09-03T11:13:55.444Z","contentChangedAt":"2026-09-03T11:13:55.444Z","schemaVersion":2},"datasetVersion":"2026-09-10T17:17:09.494Z"}