mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 21:19:18 +00:00
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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user