github.com/orange-cloudfoundry/cli@v7.1.0+incompatible/command/translatableerror/invalid_ssl_cert_error.go (about) 1 package translatableerror 2 3 type InvalidSSLCertError struct { 4 URL string 5 SuggestedCommand string 6 } 7 8 func (InvalidSSLCertError) Error() string { 9 return "Invalid SSL Cert for {{.API}}\nTIP: Use 'cf {{.SuggestedCommand}} --skip-ssl-validation' to continue with an insecure API endpoint" 10 } 11 12 func (e InvalidSSLCertError) Translate(translate func(string, ...interface{}) string) string { 13 return translate(e.Error(), map[string]interface{}{ 14 "API": e.URL, 15 "SuggestedCommand": e.SuggestedCommand, 16 }) 17 }