github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/command/translatableerror/plugin_binary_remove_failed_error.go (about) 1 package translatableerror 2 3 // PluginBinaryRemoveFailedError is returned when the removal of a plugin 4 // binary fails. 5 type PluginBinaryRemoveFailedError struct { 6 Err error 7 } 8 9 func (e PluginBinaryRemoveFailedError) Error() string { 10 return "The plugin has been uninstalled but removing the plugin binary failed.\nRemove it manually or subsequent installations of the plugin may fail\n{{.Err}}" 11 } 12 13 func (e PluginBinaryRemoveFailedError) Translate(translate func(string, ...interface{}) string) string { 14 return translate(e.Error(), map[string]interface{}{ 15 "Err": e.Err, 16 }) 17 }