start.go rename exit.WithCode with exit.WithCodeT

pull/4759/head
serhatcetinkaya 2019-09-01 20:50:44 +03:00
parent 0b829cc22d
commit 14b1d84474
1 changed files with 2 additions and 2 deletions

View File

@ -850,7 +850,7 @@ func validateKubernetesVersions(old *cfg.Config) (string, bool) {
oldestVersion, err := semver.Make(strings.TrimPrefix(constants.OldestKubernetesVersion, version.VersionPrefix))
if err != nil {
exit.WithCode(exit.Data, "Unable to parse oldest Kubernetes version from constants: %v", err)
exit.WithCodeT(exit.Data, "Unable to parse oldest Kubernetes version from constants: %v", err)
}
if nvs.LT(oldestVersion) {
@ -858,7 +858,7 @@ func validateKubernetesVersions(old *cfg.Config) (string, bool) {
if viper.GetBool(force) {
out.WarningT("Kubernetes {{.version}} is not supported by this release of minikube", out.V{"version": nvs})
} else {
exit.WithCode(exit.Data, "Sorry, Kubernetes {{.version}} is not supported by this release of minikube", out.V{"version": nvs})
exit.WithCodeT(exit.Data, "Sorry, Kubernetes {{.version}} is not supported by this release of minikube", out.V{"version": nvs})
}
}