Skip to content

Commit

Permalink
Log proxy connection errors rather than killing server.
Browse files Browse the repository at this point in the history
Don't have accurate repro for when they occur.
  • Loading branch information
foot committed Jan 4, 2016
1 parent 372c611 commit 2224713
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ var proxy = httpProxy.createProxy({
target: 'http://' + BACKEND_HOST
});

proxy.on('error', function(err) {
console.error('Proxy error', err);
});

app.all('/api*', proxy.web.bind(proxy));

// Serve index page
Expand Down

0 comments on commit 2224713

Please sign in to comment.