Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 65031c0

Browse files
authored
catch error of getLocalImagesDigests
Signed-off-by: GitHub <[email protected]>
1 parent d018e65 commit 65031c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/compose/pull.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,13 @@ func getPullPlan(service types.ServiceConfig, localDigests []string, dstrDigest
206206

207207
func (s *composeService) pullDryRun(ctx context.Context, project *types.Project, opts api.PullOptions) error {
208208
// ignore errors
209-
localDigests, _ := s.getLocalImagesDigests(ctx, project)
210209
dstrDigests, _ := s.getDistributionImagesDigests(ctx, project)
211210

211+
localDigests, err := s.getLocalImagesDigests(ctx, project)
212+
if err != nil {
213+
return err
214+
}
215+
212216
var results []pullDryRunServiceResult
213217

214218
for _, service := range project.Services {

0 commit comments

Comments
 (0)