...

Source file src/github.com/redhat-developer/odo/pkg/errors/errors.go

Documentation: github.com/redhat-developer/odo/pkg/errors

     1  package errors
     2  
     3  import "fmt"
     4  
     5  const loginMessage = `Please login to your server: 
     6  
     7  odo login https://mycluster.mydomain.com
     8  `
     9  
    10  type Unauthorized struct {
    11  }
    12  
    13  func (u *Unauthorized) Error() string {
    14  	return fmt.Sprintf("Unauthorized to access the cluster\n%s", loginMessage)
    15  }
    16  

View as plain text