From f45430e3b5d3b3afe6b761e83c2d4e7b871300e6 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sat, 10 Sep 2016 17:26:36 +0100 Subject: [PATCH] Warn about CSV mismatches in filter-regs.js --- tools/filter-regs.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/filter-regs.js b/tools/filter-regs.js index 74ef35d..d4b4783 100644 --- a/tools/filter-regs.js +++ b/tools/filter-regs.js @@ -27,6 +27,8 @@ var transformer = csv.transform(function (record, callback) { var computed = reglookup(record.icao24); if (computed === record.r) { record.r = ''; + } else if (computed !== null) { + console.warn(record.icao24 + " computed " + computed + " but CSV data had " + record.r); } }