Rethrow promise errors (#296)

This commit is contained in:
Forbes Lindesay 2017-12-18 18:03:02 +00:00 committed by Joel Marcey
parent 9c7836979f
commit a49787a56e

View file

@ -45,4 +45,8 @@ tcpPortUsed.check(port, 'localhost').then(function(inUse) {
const server = require('./server/server.js'); const server = require('./server/server.js');
server(port); server(port);
} }
}).catch(function(ex) {
setTimeout(function() {
throw ex;
}, 0);
}); });