Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Update error message for 'latest' tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Urvashi Reddy committed Feb 26, 2019
1 parent d5596ea commit 3ee1e89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/bundle/bundle.go
Expand Up @@ -145,7 +145,7 @@ func (b Bundle) Validate() error {
}

if b.Version == "latest" {
return errors.New("'latest' is not a valid tag option")
return errors.New("'latest' is not a valid bundle version")
}

for _, img := range b.InvocationImages {
Expand Down
2 changes: 1 addition & 1 deletion pkg/bundle/bundle_test.go
Expand Up @@ -179,7 +179,7 @@ func TestValidateVersionTag(t *testing.T) {
}

err := b.Validate()
is.EqualError(err, "'latest' is not a valid tag option")
is.EqualError(err, "'latest' is not a valid bundle version")
}

func TestValidateBundle_RequiresInvocationImage(t *testing.T) {
Expand Down

0 comments on commit 3ee1e89

Please sign in to comment.