github.com/lukasheimann/cloudfoundrycli@v7.1.0+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  }