summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gulpfile.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 6ee1d74..e411bea 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -71,6 +71,12 @@ gulp.task('changelog', function () {
});
gulp.task('serve', function() {
+ process.on('uncaughtException', function(err) {
+ if (err.errno === 'EADDRINUSE') {
+ console.log('Server already running (or port is otherwise in use)');
+ }
+ });
+
server = gulp.src('.')
.pipe(webserver({
host: '0.0.0.0',