Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
fix(gulp): unhandled error in gulpfile and also changing existing err…
Browse files Browse the repository at this point in the history
…or related console.log() to console.error()
  • Loading branch information
lirantal committed Mar 17, 2016
1 parent b0e6b4e commit b4c9464
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
});
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
});
});
Expand Down

0 comments on commit b4c9464

Please sign in to comment.