Commit 6c0ad4b5 by Иван Кубота

err on port busy

parent bcece0b0
...@@ -35,7 +35,9 @@ router.all('/', function(req, res) { ...@@ -35,7 +35,9 @@ router.all('/', function(req, res) {
app.use(router); app.use(router);
app.use(App.static('public')) app.use(App.static('public'))
try{
app.listen(APP_PORT); app.listen( APP_PORT );
}catch(e){
console.error(e.message);
}
console.log(`LISTEN port :`+APP_PORT); console.log(`LISTEN port :`+APP_PORT);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment