mirror of
https://github.com/restic/restic.git
synced 2025-12-18 21:56:05 -05:00
Merge pull request #5599 from MichaelEischer/prune-clean-error
prune: return proper error if blob cannot be found
This commit is contained in:
commit
96adbbaa42
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue