Skip to content

Commit

Permalink
Improve usage example
Browse files Browse the repository at this point in the history
Fixes #178
  • Loading branch information
sindresorhus committed Dec 30, 2017
1 parent 64fef33 commit 5045939
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ If your test suite is not exiting it might be because you still have a lingering
gulp.task('default', () =>
gulp.src('test.js')
.pipe(mocha())
.once('error', () => {
.once('error', err => {
console.error(err);
process.exit(1);
})
.once('end', () => {
Expand Down

0 comments on commit 5045939

Please sign in to comment.