One line server startup errors

This commit is contained in:
Pavel Djundik 2017-09-03 15:13:56 +03:00
parent 704dae9dec
commit c845d5723d
1 changed files with 2 additions and 0 deletions

View File

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