Merge pull request #3819 from fuweid/me-return-error

snapshots: return error if readSnapshot fails
This commit is contained in:
Maksym Pavlenko 2019-11-11 11:08:28 -08:00 committed by GitHub
commit 95de2655a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,7 +306,7 @@ func Remove(ctx context.Context, key string) (string, snapshots.Kind, error) {
}
if err := readSnapshot(sbkt, &id, &si); err != nil {
errors.Wrapf(err, "failed to read snapshot %s", key)
return errors.Wrapf(err, "failed to read snapshot %s", key)
}
if pbkt != nil {