Sfoglia il codice sorgente

Include image name in error message

Signed-off-by: Matthew Walowski <[email protected]>
Matthew Walowski 2 anni fa
parent
commit
6ecab95775
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      pkg/compose/images.go

+ 1 - 1
pkg/compose/images.go

@@ -90,7 +90,7 @@ func (s *composeService) getImages(ctx context.Context, images []string) (map[st
 				if errdefs.IsNotFound(err) {
 					return nil
 				}
-				return err
+				return fmt.Errorf("unable to get image '%s': %w", img, err)
 			}
 			tag := ""
 			repository := ""