mirror of
https://github.com/google-gemini/gemini-cli
synced 2026-04-21 13:37:17 +00:00
Merge df120d0f5c into a38e2f0048
This commit is contained in:
commit
d85487ca7a
1 changed files with 2 additions and 4 deletions
|
|
@ -878,10 +878,8 @@ Logging in with Google... Restarting Gemini CLI to continue.
|
|||
async (apiKey: string) => {
|
||||
try {
|
||||
onAuthError(null);
|
||||
if (!apiKey.trim() && apiKey.length > 1) {
|
||||
onAuthError(
|
||||
'API key cannot be empty string with length greater than 1.',
|
||||
);
|
||||
if (!apiKey.trim()) {
|
||||
onAuthError('API key cannot be empty.');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue