瀏覽代碼

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