@@ -71,11 +71,10 @@ func IndexRelated(related RelatedFiles, ind *Index, o IndexOptions) (result Inde
7171
7272 // Create JPEG sidecar for media files in other formats so that thumbnails can be created.
7373 if o .Convert && f .IsMedia () && ! f .HasPreviewImage () {
74- // Skip with warning if preview image could not be created .
74+ // Try to create a preview image; if this fails, log and continue without failing the whole group .
7575 if img , imgErr := ind .convert .ToImage (f , false ); imgErr != nil {
76- result .Err = fmt .Errorf ("index: could not create preview image for %s" , clean .Log (f .RootRelName ()))
77- log .Error (result .Err )
78- result .Status = IndexFailed
76+ log .Warnf ("index: could not create preview image for %s (%s)" , clean .Log (f .RootRelName ()), imgErr )
77+ // Continue indexing other related files without changing the overall success status.
7978 continue
8079 } else if img == nil {
8180 log .Debugf ("index: skipped creating preview image for %s" , clean .Log (f .RootRelName ()))
@@ -84,8 +83,8 @@ func IndexRelated(related RelatedFiles, ind *Index, o IndexOptions) (result Inde
8483
8584 // Skip with warning if thumbs could not be created.
8685 if thumbsErr := img .GenerateThumbnails (ind .thumbPath (), false ); thumbsErr != nil {
87- result . Err = fmt . Errorf ("index: failed to generate thumbnails for %s (%s)" , clean .Log (f .RootRelName ()), thumbsErr .Error ())
88- result . Status = IndexFailed
86+ log . Warnf ("index: failed to generate thumbnails for %s (%s)" , clean .Log (f .RootRelName ()), thumbsErr .Error ())
87+ // Continue indexing; preview image exists and other related files may still succeed.
8988 continue
9089 }
9190
0 commit comments