mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-21 10:34:35 -07:00
Unused error variables in catch block are not allowed (#24487)
This commit is contained in:
@@ -404,12 +404,12 @@ ${output.result}`;
|
||||
);
|
||||
await removeInputBlocker(browserManager, signal);
|
||||
await removeAutomationOverlay(browserManager, signal);
|
||||
} catch (_err) {
|
||||
} catch {
|
||||
// Ignore errors for individual pages
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (_) {
|
||||
} catch {
|
||||
// Ignore errors for removing the overlays.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1408,7 +1408,7 @@ Important Rules:
|
||||
Object.assign(args, parsed);
|
||||
}
|
||||
return { args };
|
||||
} catch (_) {
|
||||
} catch {
|
||||
return {
|
||||
args: {},
|
||||
error: `Failed to parse JSON arguments for tool "${functionCall.name}": ${functionCall.args}. Ensure you provide a valid JSON object.`,
|
||||
|
||||
Reference in New Issue
Block a user