github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/command/translatableerror/download_plugin_http_error.go (about) 1 package translatableerror 2 3 type DownloadPluginHTTPError struct { 4 Message string 5 } 6 7 func (DownloadPluginHTTPError) Error() string { 8 return "Download attempt failed; server returned {{.ErrorMessage}}\nUnable to install; plugin is not available from the given URL." 9 } 10 11 func (e DownloadPluginHTTPError) Translate(translate func(string, ...interface{}) string) string { 12 return translate(e.Error(), map[string]interface{}{ 13 "ErrorMessage": e.Message, 14 }) 15 }