diff --git a/pkg/config/config.go b/pkg/config/config.go index 859582410..38387bdfe 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -361,7 +361,7 @@ func ProcessConfigForSpacelift() error { // https://medium.com/@bnprashanth256/reading-configuration-files-and-environment-variables-in-go-golang-c2607f912b63 func processConfigFile(path string, v *viper.Viper) error { if !u.FileExists(path) { - u.PrintInfoVerbose(fmt.Sprintf("No CLI config found in '%s'", path)) + u.PrintInfoVerbose(fmt.Sprintf("No config file atmos.yaml found in path '%s'.", path)) return nil } diff --git a/pkg/utils/file_utils.go b/pkg/utils/file_utils.go index 978d30d2e..81e00fc75 100644 --- a/pkg/utils/file_utils.go +++ b/pkg/utils/file_utils.go @@ -19,7 +19,7 @@ func IsDirectory(path string) (bool, error) { // FileExists checks if a file exists and is not a directory func FileExists(filename string) bool { fileInfo, err := os.Stat(filename) - if os.IsNotExist(err) { + if os.IsNotExist(err) || err != nil { return false } return !fileInfo.IsDir()