From a365ef903eca89573ab032b19955d24182ea7653 Mon Sep 17 00:00:00 2001 From: Matthew Andrews Date: Thu, 18 Jun 2015 19:34:44 +0100 Subject: [PATCH] Reject on error --- tasks/build.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/build.js b/tasks/build.js index 38a8af21..09eb8639 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -32,7 +32,8 @@ function run(task, opts) { console.log("Watching " + getGlob(task) + " and will trigger " + task); gulp.watch(getGlob(task), [task]); } else { - gulp.start([task], resolve); + gulp.start([task], resolve) + .on('error', reject); } }); }