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