Warn about CSV mismatches in filter-regs.js
This commit is contained in:
parent
2f12447fda
commit
f45430e3b5
|
@ -27,6 +27,8 @@ var transformer = csv.transform(function (record, callback) {
|
||||||
var computed = reglookup(record.icao24);
|
var computed = reglookup(record.icao24);
|
||||||
if (computed === record.r) {
|
if (computed === record.r) {
|
||||||
record.r = '';
|
record.r = '';
|
||||||
|
} else if (computed !== null) {
|
||||||
|
console.warn(record.icao24 + " computed " + computed + " but CSV data had " + record.r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue