Fix error message grammar

This commit is contained in:
Paul Meyer 2020-04-09 20:55:10 +00:00
parent 89a8238a07
commit 621bd8ccac
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ func (s *StepVerifySharedImageDestination) Run(ctx context.Context, state multis
return errorMessage("Could not retrieve versions for image %q: unexpected nil name", to.String(image.ID))
}
if *version.Name == s.Image.ImageVersion {
return errorMessage("Shared image version %q already exists from image %q.", s.Image.ImageVersion, to.String(image.ID))
return errorMessage("Shared image version %q already exists for image %q.", s.Image.ImageVersion, to.String(image.ID))
}
err := versions.NextWithContext(ctx)

View File

@ -71,7 +71,7 @@ func TestStepVerifySharedImageDestination_Run(t *testing.T) {
{
name: "version exists",
want: multistep.ActionHalt,
wantErr: "Shared image version \"2.3.4\" already exists from image \"image-resourceid-goes-here\".",
wantErr: "Shared image version \"2.3.4\" already exists for image \"image-resourceid-goes-here\".",
fields: fields{
Image: SharedImageGalleryDestination{
ResourceGroup: "rg",