code.cloudfoundry.org/cli@v7.1.0+incompatible/actor/actionerror/multiple_uaa_users_found_error.go (about)

     1  package actionerror
     2  
     3  import (
     4  	"fmt"
     5  	"strings"
     6  )
     7  
     8  type MultipleUAAUsersFoundError struct {
     9  	Username string
    10  	Origins  []string
    11  }
    12  
    13  func (e MultipleUAAUsersFoundError) Error() string {
    14  	origins := strings.Join(e.Origins, ", ")
    15  	return fmt.Sprintf("The username '%s' is found in multiple origins: %s.", e.Username, origins)
    16  }