No need to log the exception stack when it's just a test table difference - this should be a clean error.

This commit is contained in:
Daniel Patterson 2017-01-30 15:09:32 -08:00 committed by Patrick Niklaus
parent 5b24758742
commit 36c944ef53
2 changed files with 2 additions and 2 deletions

View File

@ -50,5 +50,5 @@ module.exports = function (expected, actual) {
s.push(rowString);
});
return s.join('\n') + '\nTODO this is a temp workaround waiting for https://github.com/cucumber/cucumber-js/issues/534';
return s.join('\n');
};

View File

@ -248,7 +248,7 @@ module.exports = function () {
q.awaitAll((err, actual) => {
if (err) return callback(err);
let diff = tableDiff(table, actual);
if (diff) callback(new Error(diff));
if (diff) callback(diff);
else callback();
});
};