From b4c94642a247428bc72103015da97aebb190953a Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Fri, 11 Mar 2016 00:26:04 +0200 Subject: [PATCH] fix(gulp): unhandled error in gulpfile and also changing existing error related console.log() to console.error() --- gulpfile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 1b4abc8afa..7c97af7dd1 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -259,7 +259,7 @@ gulp.task('copyLocalEnvConfig', function () { gulp.task('makeUploadsDir', function () { return fs.mkdir('modules/users/client/img/profile/uploads', function (err) { if (err && err.code !== 'EEXIST') { - console.log(err); + console.error(err); } }); }); @@ -323,7 +323,7 @@ gulp.task('dropdb', function (done) { mongoose.connect(function (db) { db.connection.db.dropDatabase(function (err) { if (err) { - console.log(err); + console.error(err); } else { console.log('Successfully dropped db: ', db.connection.db.databaseName); } @@ -352,7 +352,8 @@ gulp.task('protractor', ['webdriver_update'], function () { process.exit(0); }) .on('error', function(err) { - console.log('E2E Tests failed'); + console.error('E2E Tests failed:'); + console.error(err); process.exit(1); }); });