Skip to content

Commit

Permalink
return error when got error from LoadFromUrl instead of exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
prakash100198 committed Nov 6, 2024
1 parent 99da5eb commit c04bc37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubedd/kubedd.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func ValidateCluster(cluster *pkg.Cluster, conf *pkg.Config) ([]pkg.ValidationRe
err := kubeC.LoadFromUrl(conf.TargetKubernetesVersion, false)
if err != nil {
kLog.Error(err)
os.Exit(1)
return make([]pkg.ValidationResult, 0), err
}
}
serverVersion, err := cluster.ServerVersion()
Expand Down

0 comments on commit c04bc37

Please sign in to comment.