mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Fix forbidden err message set or delete cmd * Add error package and tests * Delete unused variable and fix test * Delete unused interface
16 lines
275 B
Go
16 lines
275 B
Go
package errors
|
|
|
|
import "fmt"
|
|
|
|
const loginMessage = `Please login to your server:
|
|
|
|
odo login https://mycluster.mydomain.com
|
|
`
|
|
|
|
type Unauthorized struct {
|
|
}
|
|
|
|
func (u *Unauthorized) Error() string {
|
|
return fmt.Sprintf("Unauthorized to access the cluster\n%s", loginMessage)
|
|
}
|