github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/actor/actionerror/getting_plugin_repository_error.go (about)

     1  package actionerror
     2  
     3  import "fmt"
     4  
     5  // GettingPluginRepositoryError is returned when there's an error
     6  // accessing the plugin repository.
     7  type GettingPluginRepositoryError struct {
     8  	Name    string
     9  	Message string
    10  }
    11  
    12  func (e GettingPluginRepositoryError) Error() string {
    13  	return fmt.Sprintf("Could not get plugin repository '%s'\n%s", e.Name, e.Message)
    14  }