Skip to content

Commit

Permalink
Merge pull request #686 from witheve/update/message
Browse files Browse the repository at this point in the history
Update error message
  • Loading branch information
ibdknox authored Dec 12, 2016
2 parents 25c79f7 + 5a122cc commit a9f659e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export function run() {
// If the port is already in use, display an error message
process.on('uncaughtException', function handleAddressInUse(err) {
if(err.errno === 'EADDRINUSE') {
console.log(`ERROR: Eve couldn't start because port ${config.port} is already in use.\n\nYou can select a different port for Eve using the "port" argument.\nFor example:\n\n> npm start -- --port 1234`);
console.log(`ERROR: Eve couldn't start because port ${config.port} is already in use.\n\nYou can select a different port for Eve using the "port" argument.\nFor example:\n\n> eve --port 1234`);
} else {
throw err;
}
Expand Down

0 comments on commit a9f659e

Please sign in to comment.