diff --git a/packages/integrations/node/src/middleware.ts b/packages/integrations/node/src/middleware.ts index 7c45db1ae..c23cdb89c 100644 --- a/packages/integrations/node/src/middleware.ts +++ b/packages/integrations/node/src/middleware.ts @@ -55,8 +55,8 @@ async function writeWebResponse(app: NodeApp, res: ServerResponse, webResponse: for await (const chunk of responseIterator(webResponse) as unknown as Readable) { res.write(chunk); } - } catch(err: any) { - console.error(err?.stack || err?.message || String(err)) + } catch (err: any) { + console.error(err?.stack || err?.message || String(err)); res.write('Internal server error'); } }