From 621bd8ccac0693495fde8acaf8fa549a6b9e04ff Mon Sep 17 00:00:00 2001 From: Paul Meyer Date: Thu, 9 Apr 2020 20:55:10 +0000 Subject: [PATCH] Fix error message grammar --- builder/azure/chroot/step_verify_shared_image_destination.go | 2 +- .../azure/chroot/step_verify_shared_image_destination_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/azure/chroot/step_verify_shared_image_destination.go b/builder/azure/chroot/step_verify_shared_image_destination.go index 3ca6b1f88..fcbaed269 100644 --- a/builder/azure/chroot/step_verify_shared_image_destination.go +++ b/builder/azure/chroot/step_verify_shared_image_destination.go @@ -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) diff --git a/builder/azure/chroot/step_verify_shared_image_destination_test.go b/builder/azure/chroot/step_verify_shared_image_destination_test.go index 00ddcbe26..9ff8a7c00 100644 --- a/builder/azure/chroot/step_verify_shared_image_destination_test.go +++ b/builder/azure/chroot/step_verify_shared_image_destination_test.go @@ -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",