mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-17 01:21:10 -07:00
Fix for silent failures in non-interactive mode (#19905)
This commit is contained in:
@@ -261,7 +261,10 @@ describe('Turn', () => {
|
||||
const errorEvent = events[0] as ServerGeminiErrorEvent;
|
||||
expect(errorEvent.type).toBe(GeminiEventType.Error);
|
||||
expect(errorEvent.value).toEqual({
|
||||
error: { message: 'API Error', status: undefined },
|
||||
error: {
|
||||
message: 'API Error',
|
||||
status: undefined,
|
||||
},
|
||||
});
|
||||
expect(turn.getDebugResponses().length).toBe(0);
|
||||
expect(reportError).toHaveBeenCalledWith(
|
||||
|
||||
@@ -116,7 +116,7 @@ export interface StructuredError {
|
||||
}
|
||||
|
||||
export interface GeminiErrorEventValue {
|
||||
error: StructuredError;
|
||||
error: unknown;
|
||||
}
|
||||
|
||||
export interface GeminiFinishedEventValue {
|
||||
|
||||
Reference in New Issue
Block a user