diff --git a/pkg/cli/admin/inspectalerts/inspectalerts.go b/pkg/cli/admin/inspectalerts/inspectalerts.go index 8aa4cfdd80..62601928ff 100644 --- a/pkg/cli/admin/inspectalerts/inspectalerts.go +++ b/pkg/cli/admin/inspectalerts/inspectalerts.go @@ -99,7 +99,7 @@ func (o *options) Run(ctx context.Context) error { // other forms of authentication. func ValidateRESTConfig(restConfig *rest.Config) error { if restConfig.BearerToken == "" && restConfig.BearerTokenFile == "" { - return fmt.Errorf("no token is currently in use for this session") + return fmt.Errorf("no bearer token available for this session; the monitoring API requires token-based authentication, use 'oc login'") } return nil }