Skip to content

Commit

Permalink
Update markline server info
Browse files Browse the repository at this point in the history
  • Loading branch information
hotoo committed Oct 6, 2014
1 parent b501b15 commit 5da5108
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ function server(cwd, options){

}
}).listen(port).on("error", function(error){
console.error(error);
if (error.code === 'EADDRINUSE') {
console.error('Error: This port is in use, change to another one');
} else {
throw error;
}
}).on("listening", function(){
console.log("Server started at 127.0.0.1:" + port);
});

if (watch){
Expand All @@ -114,7 +120,6 @@ function server(cwd, options){
});
}

console.log("Server Started 127.0.0.1:" + port);
}

function watch(){
Expand Down

0 comments on commit 5da5108

Please sign in to comment.