Skip to content

Commit 128664b

Browse files
committed
snapshots: return error if readSnapshot fails
Signed-off-by: Wei Fu <[email protected]> (cherry picked from commit 843423e) Signed-off-by: Wei Fu <[email protected]>
1 parent a287c08 commit 128664b

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)