Преглед на файлове

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 := ""