Skip to content

Commit 8a937d5

Browse files
yyyu-googlecopybara-github
authored andcommittedJun 25, 2024
fix: improve error message to help with debugging
PiperOrigin-RevId: 646591023
1 parent 6b3e68e commit 8a937d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/functions/post_fetch_processing.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function getResponseStream(
131131
if (currentText.trim()) {
132132
controller.error(
133133
new GoogleGenerativeAIError(
134-
'Failed to parse final chunk of stream'
134+
`Failed to parse final chunk of stream: ${currentText}`
135135
)
136136
);
137137
return;

0 commit comments

Comments
 (0)