mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
Improve LoadCodeAssist error handling (#1645)
This commit is contained in:
committed by
GitHub
parent
24ccc9c457
commit
c55b15f705
@@ -46,17 +46,7 @@ export const useAuthCommand = (
|
||||
config,
|
||||
);
|
||||
} catch (e) {
|
||||
let errorMessage = `Failed to login.\nMessage: ${getErrorMessage(e)}`;
|
||||
if (
|
||||
settings.merged.selectedAuthType ===
|
||||
AuthType.LOGIN_WITH_GOOGLE_PERSONAL &&
|
||||
!process.env.GOOGLE_CLOUD_PROJECT
|
||||
) {
|
||||
errorMessage =
|
||||
'Failed to login. Workspace accounts and licensed Code Assist users must configure' +
|
||||
` GOOGLE_CLOUD_PROJECT (see https://goo.gle/gemini-cli-auth-docs#workspace-gca).\nMessage: ${getErrorMessage(e)}`;
|
||||
}
|
||||
setAuthError(errorMessage);
|
||||
setAuthError(`Failed to login. Message: ${getErrorMessage(e)}`);
|
||||
openAuthDialog();
|
||||
} finally {
|
||||
setIsAuthenticating(false);
|
||||
|
||||
Reference in New Issue
Block a user