Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/open-next/src/overrides/wrappers/cloudflare-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ const handler: WrapperHandler<InternalEvent, InternalResult> =

return new Writable({
write(chunk, encoding, callback) {
controller.enqueue(chunk);
try {
controller.enqueue(chunk);
} catch (e: any) {
return callback(e);
}
callback();
},
final(callback) {
Expand Down