Skip to content

Commit 294edef

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cli/auth/whoami.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (opts *whoOpts) Run() error {
3636
return nil
3737
}
3838

39-
var ErrUnauthenticated = errors.New("not logged in with an Atlas account")
39+
var ErrUnauthenticated = errors.New("not logged in with an Atlas account or API key")
4040

4141
func AccountWithAccessToken() (string, error) {
4242
if config.AccessToken() == "" {

0 commit comments

Comments
 (0)