Răsfoiți Sursa

Include image name in error message

Signed-off-by: Matthew Walowski <[email protected]>
Matthew Walowski 2 ani în urmă
părinte
comite
6ecab95775
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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 := ""