Skip to content

Commit 54762ed

Browse files
Update error messege
Signed-off-by: AbdullahAlShaad <[email protected]>
1 parent 9ef7276 commit 54762ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/clusterctl/client/cluster/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (k *proxy) GetConfig() (*rest.Config, error) {
147147
}
148148
restConfig, err = rest.InClusterConfig()
149149
if err != nil {
150-
return nil, err
150+
return nil, errors.New(strings.Replace(err.Error(), "invalid configuration:", "invalid kubeconfig file and failed to create inClusterConfig as well:", 1))
151151
}
152152
}
153153
restConfig.UserAgent = fmt.Sprintf("clusterctl/%s (%s)", version.Get().GitVersion, version.Get().Platform)

0 commit comments

Comments
 (0)