Open abuscom-leonhard opened 9 years ago
The actual version does not handle errors well. They are being lost with a simple error message Proxy error: .... I would suggest to add the following lines to the error handling in the createProxyServer Section
Proxy error: ...
utils.registerProxy({ server: httpProxy.createProxyServer({ target: proxyOption, secure: proxyOption.https, xfwd: proxyOption.xforward }).on('error', function (err, req, res) { grunt.log.error('Proxy error: ', err.code); res.writeHead(500, { 'Content-Type': 'text/plain' }); res.end('Something went wrong.' + err.code); }),
The actual version does not handle errors well. They are being lost with a simple error message
Proxy error: ...
. I would suggest to add the following lines to the error handling in the createProxyServer Section