From 6036aadc22a57b05530a23aeac556e72353aa7fb Mon Sep 17 00:00:00 2001 From: Alexander Matyushentsev Date: Thu, 19 Sep 2019 08:58:49 -0700 Subject: [PATCH] Fix error handling in splitConfigFilesAndRawManifestPaths method --- manifests/configaware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/configaware.go b/manifests/configaware.go index 19c8d577b..4c61f4059 100644 --- a/manifests/configaware.go +++ b/manifests/configaware.go @@ -77,7 +77,7 @@ func splitConfigFilesAndRawManifestPaths(baseDir string, paths []string) ([]*Con cf, err := NewConfigFile(configFilePath, workingDirPath) if err != nil { relConfigFilePath, relErr := filepath.Rel(baseDir, configFilePath) - if err != nil { + if relErr != nil { return nil, nil, relErr } return nil, nil, fmt.Errorf("cannot parse config file %q: %s", relConfigFilePath, err)