mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-26 13:04:49 -07:00
Adding session id as part of json o/p (#14504)
This commit is contained in:
@@ -100,6 +100,7 @@ export function handleError(
|
||||
const formattedError = formatter.formatError(
|
||||
error instanceof Error ? error : new Error(getErrorMessage(error)),
|
||||
errorCode,
|
||||
config.getSessionId(),
|
||||
);
|
||||
|
||||
console.error(formattedError);
|
||||
@@ -152,6 +153,7 @@ export function handleToolError(
|
||||
const formattedError = formatter.formatError(
|
||||
toolExecutionError,
|
||||
errorType ?? toolExecutionError.exitCode,
|
||||
config.getSessionId(),
|
||||
);
|
||||
console.error(formattedError);
|
||||
} else {
|
||||
@@ -191,6 +193,7 @@ export function handleCancellationError(config: Config): never {
|
||||
const formattedError = formatter.formatError(
|
||||
cancellationError,
|
||||
cancellationError.exitCode,
|
||||
config.getSessionId(),
|
||||
);
|
||||
|
||||
console.error(formattedError);
|
||||
@@ -231,6 +234,7 @@ export function handleMaxTurnsExceededError(config: Config): never {
|
||||
const formattedError = formatter.formatError(
|
||||
maxTurnsError,
|
||||
maxTurnsError.exitCode,
|
||||
config.getSessionId(),
|
||||
);
|
||||
|
||||
console.error(formattedError);
|
||||
|
||||
Reference in New Issue
Block a user