diff --git a/metadata/environment.go b/metadata/environment.go index 3b5d3899fcc00eff8c5d798a3bb6b1358df2016f..3c3cea73174f8f5d3e86d1b167cfbafb8258a505 100644 --- a/metadata/environment.go +++ b/metadata/environment.go @@ -211,6 +211,10 @@ func (m *manager) GetEnvironments() ([]*Environment, error) { log.Debug("Retrieving all environments") err := afero.Walk(m.appFS, string(m.environmentsPath), func(path string, f os.FileInfo, err error) error { + if err != nil { + log.Debugf("Failed to walk the path at '%s'", path) + return err + } isDir, err := afero.IsDir(m.appFS, path) if err != nil { log.Debugf("Failed to check whether the path at '%s' is a directory", path)