Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Always show error message when server start up fails
Browse files Browse the repository at this point in the history
Message was only printed when Show better when selected port was already
being used.

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
  • Loading branch information
Otavio Pontes committed Apr 11, 2016
1 parent 540e00f commit 1fe63fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@
});

server.once('error', function(err) {
console.log('Error: Could not run the Soletta Dev-App server (' + err.code + ').');
if (err.code === 'EADDRINUSE') {
console.log('Error: Could not run the Soletta Dev-App server.' +
'\nPort ' + jConf.server_port + ' is already in use');
console.log('Port ' + jConf.server_port + ' is already in use');
}
});

Expand Down

0 comments on commit 1fe63fb

Please sign in to comment.