Skip to content

Commit dc03be3

Browse files
committed
throw the error
1 parent c6844ae commit dc03be3

File tree

1 file changed

+1
-1
lines changed
  • vim--ai-scribe--react/functions/api

1 file changed

+1
-1
lines changed

vim--ai-scribe--react/functions/api/token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const onRequestPost: PagesFunction<Env> = async (context) => {
5353
console.log("Error parsing body", {
5454
request: requestClone.text(),
5555
});
56-
return error;
56+
throw error;
5757
}
5858
};
5959

0 commit comments

Comments
 (0)