github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/command/translatableerror/repository_not_registered_error.go (about) 1 package translatableerror 2 3 type RepositoryNotRegisteredError struct { 4 Name string 5 } 6 7 func (RepositoryNotRegisteredError) Error() string { 8 return "Plugin repository {{.Name}} not found.\nUse 'cf list-plugin-repos' to list registered repos." 9 } 10 11 func (e RepositoryNotRegisteredError) Translate(translate func(string, ...interface{}) string) string { 12 return translate(e.Error(), map[string]interface{}{ 13 "Name": e.Name, 14 }) 15 }