diff --git a/trainings/files/read.go b/trainings/files/read.go index 661e65a..8abdba5 100644 --- a/trainings/files/read.go +++ b/trainings/files/read.go @@ -5,6 +5,7 @@ import ( "path/filepath" "github.com/pkg/errors" + "github.com/sirupsen/logrus" "github.com/spf13/afero" "github.com/ThreeDotsLabs/cli/trainings/genproto" @@ -16,6 +17,11 @@ func (f Files) ReadSolutionFiles(trainingRootFs afero.Fs, dir string) ([]*genpro trainingRootFs, dir, func(filePath string, info os.FileInfo, err error) error { + if err != nil { + logrus.WithError(err).Warn("Error while reading solution files") + return nil + } + if info.IsDir() { return nil }