Skip to content

Commit

Permalink
Fixes error when the stacktrace is undefined #22
Browse files Browse the repository at this point in the history
  • Loading branch information
0xR authored and bcaudan committed Jan 8, 2015
1 parent 2ecee7b commit 3b74f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spec-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ SpecDisplay.prototype = {
for (var i = 0; i < assertions.length; i++) {
if (!assertions[i].passed()) {
this.log('- '.failure + assertions[i].message.failure);
if (this.displayStacktrace) {
if (this.displayStacktrace && assertions[i].trace.stack) {
this.log(this.filterStackTraces(assertions[i].trace.stack));
}
}
Expand Down

0 comments on commit 3b74f77

Please sign in to comment.