github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/command/translatableerror/bad_credentials_error.go (about) 1 package translatableerror 2 3 type BadCredentialsError struct{} 4 5 func (BadCredentialsError) Error() string { 6 return "Credentials were rejected, please try again." 7 } 8 9 func (e BadCredentialsError) Translate(translate func(string, ...interface{}) string) string { 10 return translate(e.Error(), map[string]interface{}{}) 11 }