Merge pull request #5599 from MichaelEischer/prune-clean-error

prune: return proper error if blob cannot be found
This commit is contained in:
Michael Eischer 2025-11-17 22:05:17 +01:00 committed by GitHub
commit 96adbbaa42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -300,5 +300,10 @@ func getUsedBlobs(ctx context.Context, repo restic.Repository, usedBlobs restic.
bar.SetMax(uint64(len(snapshotTrees)))
defer bar.Done()
return data.FindUsedBlobs(ctx, repo, snapshotTrees, usedBlobs, bar)
err = data.FindUsedBlobs(ctx, repo, snapshotTrees, usedBlobs, bar)
if err != nil {
return errors.Fatalf("failed finding blobs: %v", err)
}
return nil
}