error strings should not be capitalized

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
pull/30752/head
Benoit Tigeot 5 months ago
parent 1654664b78
commit 374805deb4
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -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)
}

@ -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)

Loading…
Cancel
Save