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

     1  package actionerror
     2  
     3  import "fmt"
     4  
     5  // MultipleSpacesFoundError represents the scenario when the cloud
     6  // controller returns multiple spaces when filtering by name. This is a
     7  // far out edge case and should not happen.
     8  type MultipleSpacesFoundError struct {
     9  	Name    string
    10  	OrgGUID string
    11  }
    12  
    13  func (e MultipleSpacesFoundError) Error() string {
    14  	return fmt.Sprintf("Multiple spaces found matching organization GUID '%s' and name '%s'", e.OrgGUID, e.Name)
    15  }