From b164a16e1975e69eb154c9ef2bc4b7067113d1a8 Mon Sep 17 00:00:00 2001 From: David Xia Date: Mon, 22 Nov 2021 09:17:57 -0500 Subject: [PATCH] fix: correct English wording in error message Should be "Try running" instead of "Trying running." --- pkg/skaffold/build/build_problems.go | 2 +- pkg/skaffold/build/build_problems_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/skaffold/build/build_problems.go b/pkg/skaffold/build/build_problems.go index 50e9664eb7f..7d49a03d543 100644 --- a/pkg/skaffold/build/build_problems.go +++ b/pkg/skaffold/build/build_problems.go @@ -136,7 +136,7 @@ func suggestBuildPushAccessDeniedAction(cfg interface{}) []*proto.Suggestion { return []*proto.Suggestion{{ SuggestionCode: proto.SuggestionCode_ADD_DEFAULT_REPO, - Action: "Trying running with `--default-repo` flag", + Action: "Try running with `--default-repo` flag", }} } diff --git a/pkg/skaffold/build/build_problems_test.go b/pkg/skaffold/build/build_problems_test.go index 449f38b42c4..91d37c83804 100644 --- a/pkg/skaffold/build/build_problems_test.go +++ b/pkg/skaffold/build/build_problems_test.go @@ -60,13 +60,13 @@ func TestBuildProblems(t *testing.T) { { description: "Push access denied when neither default repo or global config is defined", err: fmt.Errorf("skaffold build failed: could not push image: denied: push access to resource"), - expected: "Build Failed. No push access to specified image repository. Trying running with `--default-repo` flag.", + expected: "Build Failed. No push access to specified image repository. Try running with `--default-repo` flag.", expectedAE: &proto.ActionableErr{ ErrCode: proto.StatusCode_BUILD_PUSH_ACCESS_DENIED, Message: "skaffold build failed: could not push image: denied: push access to resource", Suggestions: []*proto.Suggestion{{ SuggestionCode: proto.SuggestionCode_ADD_DEFAULT_REPO, - Action: "Trying running with `--default-repo` flag", + Action: "Try running with `--default-repo` flag", }, }}, },