1
Fork 0

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.
This commit is contained in:
PJ-Watson 2022-08-12 02:18:59 +01:00 committed by GitHub
parent c8a9331f69
commit 5c1bbf9065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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 {