Skip to content

Commit

Permalink
Add error message for failure to generate console
Browse files Browse the repository at this point in the history
  • Loading branch information
fahlmant committed May 21, 2021
1 parent c634694 commit 18d90f2
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 18d90f2

Please sign in to comment.