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

View File

@@ -300,5 +300,10 @@ func getUsedBlobs(ctx context.Context, repo restic.Repository, usedBlobs restic.
bar.SetMax(uint64(len(snapshotTrees))) bar.SetMax(uint64(len(snapshotTrees)))
defer bar.Done() 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
} }