Skip to content

Commit 9b23b3b

Browse files
committed
fix: error response formatting
1 parent aca8828 commit 9b23b3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/backend-convex/convex/http

apps/backend-convex/convex/http/ai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ aiApp
226226
await waitForSave()
227227
await c.env.runMutation(internal.messages.finishStreaming, { streamId })
228228

229-
controller.enqueue(encoder.encode(`o: ${JSON.stringify({ error: `\`\`\`\n${errorMessage}\n\`\`\`` })}\n`))
229+
controller.enqueue(encoder.encode(`o: ${JSON.stringify({ error: `\n\`\`\`\n${errorMessage}\n\`\`\`` })}\n`))
230230
controller.close()
231231
}
232232
},

0 commit comments

Comments
 (0)