From ecc490e3d4e635ae2bc3152e1249215095aa41ed Mon Sep 17 00:00:00 2001 From: Kevin Nowaczyk Date: Tue, 26 Mar 2024 10:30:06 -0400 Subject: [PATCH] Update building.js --- src/building.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/building.js b/src/building.js index f12b802..cb872d3 100644 --- a/src/building.js +++ b/src/building.js @@ -209,13 +209,14 @@ class Building { // todo: multipolygon inner and outer roles. let parts = xmlData.querySelectorAll('member[role="part"]'); var ref = 0; + window.printError('Parts: ' + parts.length); for (let i = 0; i < parts.length; i++) { ref = parts[i].getAttribute('ref'); const part = this.fullXmlData.getElementById(ref); if (part) { ways.push(this.fullXmlData.getElementById(ref)); } else { - console.log('Part ' + ref + ' is null.'); + window.printError('Part #' + i + '(' + ref + ') is null.'); } } } else {