correctly fail on unimplemented map matching feature

This commit is contained in:
Michael Krasnyk 2017-03-31 10:56:36 +02:00 committed by Patrick Niklaus
parent 7726576bb7
commit 604f4957f7

View File

@ -175,8 +175,7 @@ module.exports = function () {
if (headers.has('matchings')) {
if (subMatchings.length != row.matchings.split(',').length) {
ok = false;
cb(new Error('*** table matchings and api response are not the same'));
return cb(new Error('*** table matchings and api response are not the same'));
}
row.matchings.split(',').forEach((sub, si) => {