add check to avoid deleting unreflected blobs

This commit is contained in:
Niko Storni 2019-07-10 17:39:58 +02:00
parent 013760d48d
commit 173e62d286
3 changed files with 6 additions and 3 deletions
blobs_reflector

View file

@ -78,6 +78,9 @@ func reflectBlobs() error {
if err != nil {
return errors.Err(err)
}
if uploader.GetSummary().Err > 0 {
return errors.Err("not al blobs were reflected. Errors: %d", uploader.GetSummary().Err)
}
return nil
}