We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64760fe commit 936e18aCopy full SHA for 936e18a
lib/vows.js
@@ -77,7 +77,7 @@ function addVow(vow) {
77
if (vow.callback.length >= 2 || !batch.suite.options.error) {
78
runTest([err]);
79
} else {
80
- output('errored', { type: 'promise', error: err });
+ output('errored', { type: 'promise', error: err.stack || err.message || JSON.stringify(err) });
81
}
82
vows.tryEnd(batch);
83
});
@@ -98,7 +98,7 @@ function addVow(vow) {
98
if (e.name && e.name.match(/AssertionError/)) {
99
output('broken', e.toString());
100
101
- output('errored', e.stack || e.message || e.toString() || e);
+ output('errored', e.stack || e.message || e);
102
103
104
0 commit comments