Skip to content

Commit fcf6974

Browse files
committed
scanner: log file paths when can't scan tags
1 parent e2dabd2 commit fcf6974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scanner/scanner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ func (s *Scanner) scanDir(st *State, absPath string) error {
376376
for _, t := range trackUpdates {
377377
trprops, trags, err := s.tagReader.Read(t.absPath)
378378
if err != nil {
379-
return fmt.Errorf("%w: %w", err, ErrReadingTags)
379+
return fmt.Errorf("read %q: %w: %w", t.basename, err, ErrReadingTags)
380380
}
381381

382382
if err := s.populateTrackAndArtists(tx, st, t.i, &album, t.track, t.timeSpec, trprops, trags, t.basename, t.absPath); err != nil {

0 commit comments

Comments
 (0)