From 28a98266899b05d1fc492a5d740e1de4cf6a00c0 Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Thu, 3 Mar 2016 14:14:20 +0100 Subject: [PATCH] Stops path-proxy from crashing on error messages --- client/server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/server.js b/client/server.js index 62fb9d7c8..009b4d544 100644 --- a/client/server.js +++ b/client/server.js @@ -107,6 +107,7 @@ var proxyRules = new HttpProxyRules({ }); var pathProxy = httpProxy.createProxy({ws: true}); +pathProxy.on('error', function(err) { console.error('path proxy error', err); }); var pathProxyPort = port + 1; const proxyPathServer = http.createServer(function(req, res) { var target = proxyRules.match(req);