handle errors.

This commit is contained in:
Christopher Jeffrey 2016-06-05 21:43:06 -07:00
parent 84857b32d5
commit 4fdea6126a
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -26,6 +26,10 @@ server.get('/bcoin-worker.js', function(req, res, next, send) {
send(200, worker, 'js');
});
server.on('error', function(err) {
console.error(err.stack + '');
});
proxy.attach(server.server);
server.listen(+process.argv[2] || 8080);