mirror of
https://github.com/restic/restic.git
synced 2026-02-17 06:23:56 +00:00
Merge pull request #5599 from MichaelEischer/prune-clean-error
prune: return proper error if blob cannot be found
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user