From d9e073a2082d803fac9c254b3e538bbac50edf2d Mon Sep 17 00:00:00 2001 From: Mirco Zanchi Date: Sun, 20 Feb 2022 10:55:42 +0100 Subject: [PATCH] fix (Issue #10685): Do not panic on invalid value locations Signed-off-by: Mirco Zanchi --- pkg/cli/values/options.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cli/values/options.go b/pkg/cli/values/options.go index e6ad71767..7514240ff 100644 --- a/pkg/cli/values/options.go +++ b/pkg/cli/values/options.go @@ -117,5 +117,8 @@ func readFile(filePath string, p getter.Providers) ([]byte, error) { return ioutil.ReadFile(filePath) } data, err := g.Get(filePath, getter.WithURL(filePath)) + if err != nil { + return nil, err + } return data.Bytes(), err }