From 8102cff1846d695669e8d755aca7b9c384888fd8 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 20 Mar 2015 11:56:41 -0400 Subject: [PATCH] Fix gulp watch not erroring out with legitimate errors --- tasks/config/project/tasks.js | 4 ++++ tasks/watch.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/config/project/tasks.js b/tasks/config/project/tasks.js index 1a8e90fe6..0cc7eb3d5 100644 --- a/tasks/config/project/tasks.js +++ b/tasks/config/project/tasks.js @@ -83,6 +83,10 @@ module.exports = { if(error.filename.match(/theme.less/)) { console.error('Looks like your theme.config is out of date. You will need to add new elements from theme.config.example'); } + else { + console.log(error); + this.emit('end'); + } } } }, diff --git a/tasks/watch.js b/tasks/watch.js index a4a9ecee8..55980d6ff 100644 --- a/tasks/watch.js +++ b/tasks/watch.js @@ -136,6 +136,7 @@ module.exports = function(callback) { stream = gulp.src(lessPath) .pipe(plumber(settings.plumber.less)) .pipe(less(settings.less)) + .pipe(print(log.created)) .pipe(replace(comments.variables.in, comments.variables.out)) .pipe(replace(comments.license.in, comments.license.out)) .pipe(replace(comments.large.in, comments.large.out)) @@ -170,7 +171,6 @@ module.exports = function(callback) { gulp.start('package compressed css'); }) ; - } else { console.log('Cannot find UI definition at path', lessPath);