Skip to content

Commit

Permalink
pkg/commands: fix dropped errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs committed Aug 8, 2023
1 parent 77c116b commit 79212e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/commands/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,18 @@ func (i *imageCache) get(ctx context.Context, ref name.Reference, missFunc baseF
return nil, err
}
br, err = i.newLazyIndex(ref, idx, missFunc)
if err != nil {
return nil, err
}
} else {
img, err := ii.Image(h)
if err != nil {
return nil, err
}
br, err = i.newLazyImage(ref, img, missFunc)
if err != nil {
return nil, err
}
}
if err != nil {
return nil, err
Expand Down

0 comments on commit 79212e8

Please sign in to comment.