Skip to content

Commit ad2d8d1

Browse files
CLOUDP-276968: improve whoami err message
1 parent 294edef commit ad2d8d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cli/auth/whoami.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func AccountWithAccessToken() (string, error) {
4646
return config.AccessTokenSubject()
4747
}
4848

49-
func AuthTypeAndSubject() (string, string, error) {
49+
func authTypeAndSubject() (string, string, error) {
5050
if config.PublicAPIKey() != "" {
5151
return "key", config.PublicAPIKey(), nil
5252
}
@@ -72,7 +72,7 @@ func WhoAmIBuilder() *cobra.Command {
7272
},
7373
RunE: func(_ *cobra.Command, _ []string) error {
7474
var err error
75-
if opts.authType, opts.authSubject, err = AuthTypeAndSubject(); err != nil {
75+
if opts.authType, opts.authSubject, err = authTypeAndSubject(); err != nil {
7676
return err
7777
}
7878

0 commit comments

Comments
 (0)