(message)
| 255 | } |
| 256 | |
| 257 | function textErrorBody(message) { |
| 258 | return { |
| 259 | contentType: "text/plain; charset=utf-8", |
| 260 | body: `Bad Gateway: ${message}`, |
| 261 | }; |
| 262 | } |
| 263 | |
| 264 | function writeProxyError(res, message, errorBody) { |
| 265 | if (res.destroyed) return; |
nothing calls this directly
no outgoing calls
no test coverage detected