One line server startup errors

This commit is contained in:
Pavel Djundik 2017-09-03 15:13:56 +03:00
parent 704dae9dec
commit c845d5723d

View File

@ -94,6 +94,8 @@ module.exports = function() {
};
}
server.on("error", (err) => log.error(`${err}`));
server.listen(listenParams, () => {
if (typeof listenParams === "string") {
log.info("Available on socket " + colors.green(listenParams));