Skip to content

Commit 843423e

Browse files
committed
snapshots: return error if readSnapshot fails
Signed-off-by: Wei Fu <[email protected]>
1 parent c038a7c commit 843423e

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
@@ -306,7 +306,7 @@ func Remove(ctx context.Context, key string) (string, snapshots.Kind, error) {
306306
}
307307

308308
if err := readSnapshot(sbkt, &id, &si); err != nil {
309-
errors.Wrapf(err, "failed to read snapshot %s", key)
309+
return errors.Wrapf(err, "failed to read snapshot %s", key)
310310
}
311311

312312
if pbkt != nil {

0 commit comments

Comments
 (0)