Skip to content

Commit b5ede20

Browse files
Merge pull request #3822 from fuweid/cherry-pick-3819-1.3
[release/1.3] snapshots: return error if readSnapshot fails
2 parents 780b5d5 + e19c621 commit b5ede20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

snapshots/storage/bolt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func Remove(ctx context.Context, key string) (string, snapshots.Kind, error) {
297297
}
298298

299299
if err := readSnapshot(sbkt, &id, &si); err != nil {
300-
errors.Wrapf(err, "failed to read snapshot %s", key)
300+
return errors.Wrapf(err, "failed to read snapshot %s", key)
301301
}
302302

303303
if pbkt != nil {

0 commit comments

Comments
 (0)