@biffo/cli 0.244.4 → 0.244.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -111,8 +111,12 @@ const server = createServer((req, res) => {
|
|
|
111
111
|
})
|
|
112
112
|
res.end(body)
|
|
113
113
|
} catch (err) {
|
|
114
|
+
// The detail goes to stderr, not to the caller: Playwright captures this
|
|
115
|
+
// webServer's output, so whoever is debugging still sees the whole error,
|
|
116
|
+
// and the response body stays bounded (js/stack-trace-exposure, #1223).
|
|
117
|
+
console.error('[e2e-static-server]', err)
|
|
114
118
|
res.writeHead(500, { 'content-type': 'text/plain' })
|
|
115
|
-
res.end(
|
|
119
|
+
res.end('Internal error')
|
|
116
120
|
}
|
|
117
121
|
})()
|
|
118
122
|
})
|