Skip to content

Commit

Permalink
Add some extra logging temporarily (#3843)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
  • Loading branch information
tegioz authored May 31, 2024
1 parent 8aec0e7 commit 476a827
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/repo/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/go-git/go-git/v5/storage/memory"
"github.com/google/go-containerregistry/pkg/name"
"github.com/google/go-containerregistry/pkg/v1/remote"
"github.com/rs/zerolog/log"
"github.com/satori/uuid"
"github.com/spf13/viper"
"gopkg.in/yaml.v2"
Expand Down Expand Up @@ -829,6 +830,7 @@ func (m *Manager) validateURL(r *hub.Repository) error {
case hub.Helm:
if SchemeIsHTTP(u) {
if _, _, err := m.il.LoadIndex(r); err != nil {
log.Error().Err(err).Str("url", r.URL).Msg("error loading index")
return errors.New("the url provided does not point to a valid Helm repository")
}
}
Expand Down

0 comments on commit 476a827

Please sign in to comment.