diff --git a/cli/config/config.go b/cli/config/config.go index 143436b9ec..9161921a2d 100644 --- a/cli/config/config.go +++ b/cli/config/config.go @@ -96,12 +96,12 @@ func Load(configDir string) (*configfile.ConfigFile, error) { } file, err := os.Open(confFile) if err != nil { - return configFile, errors.Wrap(err, confFile) + return configFile, errors.Wrap(err, filename) } defer file.Close() err = configFile.LegacyLoadFromReader(file) if err != nil { - return configFile, errors.Wrap(err, confFile) + return configFile, errors.Wrap(err, filename) } return configFile, nil }