Skip to content

Commit

Permalink
Reduce noise in console output on test failures (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanblumenberg authored and sindresorhus committed May 23, 2018
1 parent eb1f5cc commit fc5cc1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = opts => {
done();
})
.catch(err => {
this.emit('error', new PluginError('gulp-mocha', err));
this.emit('error', new PluginError('gulp-mocha', err.code > 0 ? 'There were test failures' : err));
done();
});

Expand Down

0 comments on commit fc5cc1f

Please sign in to comment.