Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better messages for Eve server #553

Merged
merged 3 commits into from
Nov 15, 2016
Merged

Better messages for Eve server #553

merged 3 commits into from
Nov 15, 2016

Conversation

cmontella
Copy link
Contributor

Displays a better message when the server stops, and a better error when the server cannot start due to the port being in use.

Copy link
Contributor

@ibdknox ibdknox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to do the PORT environment variable to work on Heroku and the like, but maybe we should consider adding a --port 8080 cli argument as well?

// If the port is already in use, display an error message
process.on('uncaughtException', function(err) {
if(err.errno === 'EADDRINUSE') {
console.log(`ERROR: Eve couldn't start because port ${PORT} is already in use. Close the process using this port and try again.`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of telling them to close the thing on that port, we could tell them to use the PORT env variable to use a different port.

@cmontella cmontella merged commit d400d32 into master Nov 15, 2016
@cmontella cmontella deleted the corey branch November 15, 2016 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants