From 5c1bbf9065f63f968b057ae0df387a61de5ea996 Mon Sep 17 00:00:00 2001 From: PJ-Watson <59647390+PJ-Watson@users.noreply.github.com> Date: Fri, 12 Aug 2022 02:18:59 +0100 Subject: [PATCH] Fixed ScanAlbum failing silently. 2.3.12 -> 2.3.13 restructured ScanAlbum so that errors were returned rather than raising a ScannerError directly - this ensures that the errors are logged correctly. --- api/scanner/scanner_queue/queue.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/scanner/scanner_queue/queue.go b/api/scanner/scanner_queue/queue.go index 48f08800..234655e5 100644 --- a/api/scanner/scanner_queue/queue.go +++ b/api/scanner/scanner_queue/queue.go @@ -32,7 +32,10 @@ func NewScannerJob(ctx scanner_task.TaskContext) ScannerJob { } func (job *ScannerJob) Run(db *gorm.DB) { - scanner.ScanAlbum(job.ctx) + err := scanner.ScanAlbum(job.ctx) + if err != nil { + scanner_utils.ScannerError("Failed to scan album: %v", err) + } } type ScannerQueueSettings struct {