diff --git a/helm/provider.go b/helm/provider.go index 57183bbc6..417a414b5 100644 --- a/helm/provider.go +++ b/helm/provider.go @@ -9,6 +9,7 @@ import ( "log" "net/url" "os" + "reflect" "strconv" "strings" "sync" @@ -508,10 +509,11 @@ func OCIRegistryPerformLogin(registryClient *registry.Client, ociURL string, use debug("[INFO] Already logged into OCI registry %q", u.Host) return nil } - err = registryClient.Login(u.Host, - registry.LoginOptBasicAuth(username, password)) + + loginOpts := registry.LoginOptBasicAuth(username, password) + err = registryClient.Login(u.Host, loginOpts) if err != nil { - return fmt.Errorf("could not login to OCI registry %q: %v", u.Host, err) + return fmt.Errorf("could not login to OCI registry %q: %v %v", u.Host, reflect.TypeOf(err), err) } loggedInOCIRegistries[u.Host] = "" debug("[INFO] Logged into OCI registry")