From 79db8a0cd1aa3efb55d2f6a16f6a5527aa6fca41 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 26 Feb 2020 00:16:09 -0500 Subject: [PATCH] Fix file scanning error condition --- cmd/cdr/generate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cdr/generate.go b/cmd/cdr/generate.go index 6583705..3919932 100644 --- a/cmd/cdr/generate.go +++ b/cmd/cdr/generate.go @@ -25,7 +25,7 @@ func newMixtape(wd string) (*cdr.Mixtape, error) { filepath.Walk(wd, func(path string, i os.FileInfo, err error) error { if !i.IsDir() && !strings.HasPrefix(i.Name(), ".") && i.Name() != "index.html" { t, err := cdr.NewTrack(i.Name()) - if err == nil { + if err != nil { log.Printf("Skipping track %s: %v", i.Name(), err) return nil }