Skip to content

Commit

Permalink
Print the error message only once.
Browse files Browse the repository at this point in the history
  • Loading branch information
eventualbuddha committed Jun 5, 2014
1 parent a20bf8d commit 8c1c863
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,10 @@ function printSuccess(testName) {
function printFailure(testName, error) {
console.log('\x1b[31m✘ ' + testName + '\x1b[0m');
console.log();
console.log(error.message);
if (error.stack) {
console.log(error.stack);
} else {
console.log(error.message);
}
}

Expand Down

0 comments on commit 8c1c863

Please sign in to comment.