Skip to content

Commit

Permalink
[BUGFIX] Return early if error
Browse files Browse the repository at this point in the history
Removes logging that the server is listening when there is an error.
  • Loading branch information
michaelBenin committed Sep 6, 2015
1 parent 3883f8a commit f1b51a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ new WebpackDevServer(webpack(config), {
historyApiFallback: true
}).listen(3000, 'localhost', function (err, result) {
if (err) {
console.log(err);
return console.log(err);
}

console.log('Listening at localhost:3000');
Expand Down

0 comments on commit f1b51a4

Please sign in to comment.