github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/command/translatableerror/plugin_not_found_error.go (about) 1 package translatableerror 2 3 type PluginNotFoundError struct { 4 PluginName string 5 } 6 7 func (e PluginNotFoundError) Error() string { 8 return "Plugin {{.PluginName}} does not exist." 9 } 10 11 func (e PluginNotFoundError) Translate(translate func(string, ...interface{}) string) string { 12 return translate(e.Error(), map[string]interface{}{ 13 "PluginName": e.PluginName, 14 }) 15 }