github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/command/translatableerror/invalid_ssl_cert_error.go (about) 1 package translatableerror 2 3 type InvalidSSLCertError struct { 4 API 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.API, 14 }) 15 }