Skip to content

Commit

Permalink
don't truncate message-list Error in Base.list(); closes mochajs#2361
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Jul 9, 2016
1 parent 58ced06 commit 52d0268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/base.js
Expand Up @@ -178,7 +178,7 @@ exports.list = function(failures) {
message = '';
}
var stack = err.stack || message;
var index = stack.indexOf(message);
var index = message ? stack.indexOf(message) : -1;
var actual = err.actual;
var expected = err.expected;
var escape = true;
Expand Down

0 comments on commit 52d0268

Please sign in to comment.