mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-25 05:21:03 -07:00
refactor(core): improve error handling for setGlobalProxy (#12437)
This commit is contained in:
@@ -58,9 +58,5 @@ export async function fetchWithTimeout(
|
||||
}
|
||||
|
||||
export function setGlobalProxy(proxy: string) {
|
||||
try {
|
||||
setGlobalDispatcher(new ProxyAgent(proxy));
|
||||
} catch (e) {
|
||||
console.error(`Failed to set proxy: ${getErrorMessage(e)}`);
|
||||
}
|
||||
setGlobalDispatcher(new ProxyAgent(proxy));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user