github.com/orange-cloudfoundry/cli@v7.1.0+incompatible/command/translatableerror/plugin_binarly_uninstall_error.go (about)

     1  package translatableerror
     2  
     3  // PluginBinaryUninstallError is returned when running the plugin's uninstall
     4  // hook fails.
     5  type PluginBinaryUninstallError struct {
     6  	Err error
     7  }
     8  
     9  func (e PluginBinaryUninstallError) Error() string {
    10  	return "The plugin's uninstall method returned an unexpected error.\nThe plugin uninstall will proceed. Contact the plugin author if you need help.\n{{.Err}}"
    11  }
    12  
    13  func (e PluginBinaryUninstallError) Translate(translate func(string, ...interface{}) string) string {
    14  	return translate(e.Error(), map[string]interface{}{
    15  		"Err": e.Err,
    16  	})
    17  }