Skip to content

Commit 9076913

Browse files
authored
fix: add logging when encountering error while trying to proxy (#7527)
1 parent dc80e9d commit 9076913

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/proxy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ const initializeProxy = async function ({
522522
})
523523

524524
proxy.on('error', (err, req, res, proxyUrl) => {
525+
console.error(`${NETLIFYDEVWARN} Got error while trying to proxy`, err)
526+
525527
// @ts-expect-error TS(2339) FIXME: Property 'proxyOptions' does not exist on type 'In... Remove this comment to see the full error message
526528
const options = req.proxyOptions
527529

0 commit comments

Comments
 (0)