Skip to content

Commit

Permalink
Include not ready image name in api output
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmcnew committed Oct 25, 2019
1 parent 6fa4013 commit ebff217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/current.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package images

import (
"errors"
"github.com/apex/log"
"github.com/pivotal/kpack/pkg/apis/build/v1alpha1"
v1alpha1Listers "github.com/pivotal/kpack/pkg/client/listers/build/v1alpha1"
"github.com/pkg/errors"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/labels"
_ "k8s.io/client-go/plugin/pkg/client/auth"
Expand Down Expand Up @@ -64,7 +64,7 @@ func Current(lister v1alpha1Listers.ImageLister, buildLister v1alpha1Listers.Bui
func lastCompletedBuild(buildLister v1alpha1Listers.BuildLister, image *v1alpha1.Image) (*v1alpha1.Build, error) {
buildRef := image.Status.LatestBuildRef
if buildRef == "" {
return nil, errors.New("build not ready yet :)")
return nil, errors.Errorf("build not ready yet :): %s", image.Name)
}

key := image.Name + "-" + image.Namespace
Expand Down

0 comments on commit ebff217

Please sign in to comment.