Skip to content

Commit

Permalink
remove error wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Dec 15, 2023
1 parent f918643 commit 33ac934
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/preview2-shim/lib/io/worker-http.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export async function setOutgoingResponse(

export async function startHttpServer(id, { port, host }) {
const server = createServer((req, res) => {
try {
// create the streams and their ids
const streamId = createStream(req);
const responseId = ++responseCnt;
Expand All @@ -64,11 +63,6 @@ export async function startHttpServer(id, { port, host }) {
},
});
responses.set(responseId, res);
} catch (e) {
process._rawDebug('SERVE RHANDLER ERR');
process._rawDebug(e);
throw e;
}
});
await new Promise((resolve, reject) => {
server.listen(port, host, resolve);
Expand Down

0 comments on commit 33ac934

Please sign in to comment.