Limit error reporting message to 80 cols width to reduce dodgy wrapping

pull/723/head
Jimmi Dyson 2016-10-20 10:55:24 +01:00
parent f16658c5ba
commit e62d7291a6
No known key found for this signature in database
GPG Key ID: 978CD4AF4C1E87F5
1 changed files with 7 additions and 4 deletions

View File

@ -116,10 +116,13 @@ func MaybeReportErrorAndExit(errToReport error) {
if viper.GetBool(config.WantReportError) {
err = ReportError(errToReport, constants.ReportingURL)
} else if viper.GetBool(config.WantReportErrorPrompt) {
fmt.Println("========================================" +
"An error has occurred. Would you like to opt in to sending anonymized crash information to minikube to help prevent future errors?" +
"(To opt out of these messages, run the command)\n\tminikube config set WantReportErrorPrompt false" +
"========================================")
fmt.Println(
`================================================================================
An error has occurred. Would you like to opt in to sending anonymized crash
information to minikube to help prevent future errors?
To opt out of these messages, run the command:
minikube config set WantReportErrorPrompt false
================================================================================`)
if PromptUserForAccept(os.Stdin) {
minikubeConfig.Set(config.WantReportError, "true")
err = ReportError(errToReport, constants.ReportingURL)