Переглянути джерело

Include image name in error message

Signed-off-by: Matthew Walowski <[email protected]>
Matthew Walowski 2 роки тому
батько
коміт
6ecab95775
1 змінених файлів з 1 додано та 1 видалено
  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 := ""