From 374805deb4f1cd43a3310c6d42117929a724eb3d Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Mon, 14 Apr 2025 10:51:55 +0200 Subject: [PATCH] error strings should not be capitalized Signed-off-by: Benoit Tigeot --- pkg/cmd/repo_update.go | 2 +- pkg/cmd/repo_update_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/repo_update.go b/pkg/cmd/repo_update.go index 12de2bdaa..a905406cd 100644 --- a/pkg/cmd/repo_update.go +++ b/pkg/cmd/repo_update.go @@ -137,7 +137,7 @@ func updateCharts(repos []*repo.ChartRepository, out io.Writer) error { } if len(repoFailList) > 0 { - return fmt.Errorf("Failed to update the following repositories: %s", + return fmt.Errorf("failed to update the following repositories: %s", repoFailList) } diff --git a/pkg/cmd/repo_update_test.go b/pkg/cmd/repo_update_test.go index aa8f52beb..b0deff1ae 100644 --- a/pkg/cmd/repo_update_test.go +++ b/pkg/cmd/repo_update_test.go @@ -193,7 +193,7 @@ func TestUpdateChartsFailWithError(t *testing.T) { t.Error("Repo update should return error because update of repository fails and 'fail-on-repo-update-fail' flag set") return } - var expectedErr = "Failed to update the following repositories" + var expectedErr = "failed to update the following repositories" var receivedErr = err.Error() if !strings.Contains(receivedErr, expectedErr) { t.Errorf("Expected error (%s) but got (%s) instead", expectedErr, receivedErr)