refactor: proxy error response (#452)

This commit is contained in:
Aman Harwara
2023-02-22 21:36:32 +05:30
committed by GitHub
parent 6fed293716
commit f4208c19a7
+1 -1
View File
@@ -12,7 +12,7 @@ proxy.on('error', (error, _req, res) => {
;(res as http.ServerResponse).writeHead(500, {
'Content-Type': 'text/plain',
})
res.end('Something went wrong. And we are reporting a custom error message.')
res.end(error.message)
})
http