Gracefully handle web server errors
parent
c52938fc84
commit
ff977b3eea
|
@ -84,5 +84,9 @@ module.exports = () => {
|
|||
}
|
||||
});
|
||||
|
||||
server.on('error', err => {
|
||||
console.log('[WARN] Web server error:', err.message);
|
||||
});
|
||||
|
||||
server.listen(config.port);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue