github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/command/translatableerror/fetching_plugin_info_from_repositories_error.go (about) 1 package translatableerror 2 3 type FetchingPluginInfoFromRepositoriesError struct { 4 Message string 5 RepositoryName string 6 } 7 8 func (FetchingPluginInfoFromRepositoriesError) Error() string { 9 return "Plugin list download failed; repository {{.RepositoryName}} returned {{.ErrorMessage}}." 10 } 11 12 func (e FetchingPluginInfoFromRepositoriesError) Translate(translate func(string, ...interface{}) string) string { 13 return translate(e.Error(), map[string]interface{}{ 14 "RepositoryName": e.RepositoryName, 15 "ErrorMessage": e.Message, 16 }) 17 }