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

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 {