Skip to content

Commit fc5cc1f

Browse files
johanblumenbergsindresorhus
authored andcommitted
Reduce noise in console output on test failures (#188)
1 parent eb1f5cc commit fc5cc1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module.exports = opts => {
6565
done();
6666
})
6767
.catch(err => {
68-
this.emit('error', new PluginError('gulp-mocha', err));
68+
this.emit('error', new PluginError('gulp-mocha', err.code > 0 ? 'There were test failures' : err));
6969
done();
7070
});
7171

0 commit comments

Comments
 (0)