Skip to content

Commit

Permalink
🧹 report errors when status command fails to auth
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Oct 30, 2024
1 parent 1bbfb1f commit d77f399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cnquery/cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func (s Status) RenderCliStatus() {

if s.Client.Registered && s.Client.PingPongError == nil {
log.Info().Msg(theme.DefaultTheme.Success("client authenticated successfully"))
} else if s.Client.PingPongError == nil {
} else if s.Client.PingPongError != nil {
log.Error().Err(s.Client.PingPongError).
Msgf("The Mondoo Platform credentials provided at %s didn't successfully authenticate with Mondoo Platform. Please re-authenticate with Mondoo Platform. To learn how, read https://mondoo.com/docs/cnspec/cnspec-adv-install/registration/.",
viper.ConfigFileUsed())
Expand Down

0 comments on commit d77f399

Please sign in to comment.