{"record":{"id":"05fdd9512917c948","repo":"portainer/portainer","slug":"expected-name-value-got-s","errorCode":null,"errorMessage":"expected NAME=VALUE got '%s'","messagePattern":"expected NAME=VALUE got '(.+?)'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"api/cli/pairlist.go","lineNumber":18,"sourceCode":"package cli\n\nimport (\n\tportainer \"github.com/portainer/portainer/api\"\n\n\t\"fmt\"\n\t\"strings\"\n\n\t\"github.com/alecthomas/kingpin/v2\"\n)\n\ntype pairList []portainer.Pair\n\n// Set implementation for a list of portainer.Pair\nfunc (l *pairList) Set(value string) error {\n\tparts := strings.SplitN(value, \"=\", 2)\n\tif len(parts) != 2 {\n\t\treturn fmt.Errorf(\"expected NAME=VALUE got '%s'\", value)\n\t}\n\tp := new(portainer.Pair)\n\tp.Name = parts[0]\n\tp.Value = parts[1]\n\t*l = append(*l, *p)\n\treturn nil\n}\n\n// String implementation for a list of pair\nfunc (l *pairList) String() string {\n\treturn \"\"\n}\n\n// IsCumulative implementation for a list of pair\nfunc (l *pairList) IsCumulative() bool {\n\treturn true\n}\n","sourceCodeStart":1,"sourceCodeEnd":36,"githubUrl":"https://github.com/portainer/portainer/blob/17e74456ff6e794b9d5439ec3fa06922aa18a3f8/api/cli/pairlist.go#L1-L36","documentation":"Error \"expected NAME=VALUE got '%s'\" thrown in portainer/portainer.","triggerScenarios":"Thrown at api/cli/pairlist.go:18 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":"17e74456ff6e794b9d5439ec3fa06922aa18a3f8","analyzedAt":"2026-08-26T23:09:01.915Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}