Skip to content

Commit a5eabf1

Browse files
authored
Add logging to edge function (#357)
1 parent 83829d1 commit a5eabf1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/ui/api/ai.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ export default async (req: Request) => {
7171
return new StreamingTextResponse(stream);
7272

7373
} catch (e) {
74+
console.error("Could not retrieve results:", e);
7475
return Response.json({
7576
error: 'Could not retrieve results.'
76-
})
77+
});
7778
}
7879
}

0 commit comments

Comments
 (0)