Skip to content

Commit

Permalink
Merge pull request #95 from fahlmant/console-error-fix
Browse files Browse the repository at this point in the history
Add error message for failure to generate console
  • Loading branch information
openshift-merge-robot authored May 21, 2021
2 parents c634694 + 18d90f2 commit bf5c45f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/account/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func (o *consoleOptions) run() error {
aws.String(o.k8sclusterresourcefactory.Awscloudfactory.SessionName), aws.String(fmt.Sprintf("arn:aws:iam::%s:role/%s",
o.k8sclusterresourcefactory.AccountID, o.k8sclusterresourcefactory.Awscloudfactory.RoleName)))
if err != nil {
fmt.Fprintf(o.IOStreams.Out, "Generating console failed. If CCS cluster, customer removed or denied access to the BYOC role.")
return err
}
fmt.Fprintf(o.IOStreams.Out, "The AWS Console URL is:\n%s\n", consoleURL)
Expand Down

0 comments on commit bf5c45f

Please sign in to comment.