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