Skip to content

Commit

Permalink
Merge pull request meanjs#1261 from lirantal/bugfix/gulpfile_lint_issues
Browse files Browse the repository at this point in the history
fix(gulp): unhandled error (not printed for the user)
  • Loading branch information
lirantal committed Mar 18, 2016
2 parents 47b228c + b4c9464 commit 8d137ac
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 8d137ac

Please sign in to comment.