Skip to content

Commit

Permalink
fix: add error message (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
zivyangll authored and xudafeng committed Jan 14, 2019
1 parent b81daeb commit 8de18e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -4076,8 +4076,9 @@ function Spec(runner) {
}
});

runner.on('fail', function(test) {
runner.on('fail', function(test, err) {
console.log(indent() + color('fail', ' %d) %s'), ++n, test.title);
console.log(indent(), color('fail', require('../utils').escape(err)));
});
}

Expand Down

0 comments on commit 8de18e7

Please sign in to comment.