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:
parent
c8a9331f69
commit
5c1bbf9065
|
@ -32,7 +32,10 @@ func NewScannerJob(ctx scanner_task.TaskContext) ScannerJob {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (job *ScannerJob) Run(db *gorm.DB) {
|
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 {
|
type ScannerQueueSettings struct {
|
||||||
|
|
Loading…
Reference in New Issue