Skip to content

Commit

Permalink
Fixed chopping of first char in error reporting. Closes #334
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 20, 2012
1 parent 9125b84 commit 8ac5184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ exports.list = function(failures){
}

// indent stack trace without msg
stack = stack.slice(index + 1)
stack = stack.slice(index ? index + 1 : index)
.replace(/^/gm, ' ');

console.error(fmt, (i + 1), test.fullTitle(), msg, stack);
Expand Down

0 comments on commit 8ac5184

Please sign in to comment.