Skip to content

Commit

Permalink
Trying not to mask the error
Browse files Browse the repository at this point in the history
  • Loading branch information
mgencur committed Sep 13, 2024
1 parent 3d045ff commit d0540bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vendor/knative.dev/reconciler-test/pkg/environment/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,14 @@ func ProduceImages(ctx context.Context) (map[string]string, error) {
continue
}
image, err := ip(ctx, pack)
if err != nil {
return nil, fmt.Errorf("Error building image: %w", err)
}
if errors.Is(err, ko.ErrKoPublishFailed) {
logging.FromContext(ctx).Warnw("Ko publish failed, using image directly", "error", err, "image", pack)
image = pack
err = nil
return nil, fmt.Errorf("Error building image for %s: %w", image, err)
//err = nil
}
if err != nil {
return nil, err
Expand Down

0 comments on commit d0540bf

Please sign in to comment.