Skip to content

Commit

Permalink
fix some error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Dec 29, 2010
1 parent 64760fe commit 936e18a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vows.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function addVow(vow) {
if (vow.callback.length >= 2 || !batch.suite.options.error) {
runTest([err]);
} else {
output('errored', { type: 'promise', error: err });
output('errored', { type: 'promise', error: err.stack || err.message || JSON.stringify(err) });
}
vows.tryEnd(batch);
});
Expand All @@ -98,7 +98,7 @@ function addVow(vow) {
if (e.name && e.name.match(/AssertionError/)) {
output('broken', e.toString());
} else {
output('errored', e.stack || e.message || e.toString() || e);
output('errored', e.stack || e.message || e);
}
}
}
Expand Down

0 comments on commit 936e18a

Please sign in to comment.