Improve Auth error messaging (#1358)

This commit is contained in:
Tommaso Sciortino
2025-06-23 18:37:41 -07:00
committed by GitHub
parent 104f23da90
commit 0abd2a644e
9 changed files with 57 additions and 31 deletions

View File

@@ -292,8 +292,7 @@ export class GeminiClient {
throw error;
}
try {
const parsedJson = JSON.parse(text);
return parsedJson;
return JSON.parse(text);
} catch (parseError) {
await reportError(
parseError,