diff --git a/client/go/internal/cli/cmd/login.go b/client/go/internal/cli/cmd/login.go index ff9db35d515..2c0e09369f1 100644 --- a/client/go/internal/cli/cmd/login.go +++ b/client/go/internal/cli/cmd/login.go @@ -72,7 +72,14 @@ This command runs a browser-based authentication flow for the Vespa Cloud contro }) if err != nil { - return fmt.Errorf("login error: %w", err) + switch err.Error() { + case "600": + return errHint(fmt.Errorf("Unable to login through social channels"), + "Your organization does not allow logging in through our social channels", + "Please login by entering your address into the email field") + default: + return fmt.Errorf("login error: %w", err) + } } // store the refresh token