summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcreate-data.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/create-data.js b/create-data.js
index fb162b8..1e62d2d 100755
--- a/create-data.js
+++ b/create-data.js
@@ -358,6 +358,11 @@ function getPartToLevelMap(buildingRelations, buildings, callback) {
// Process level relations
async.each(buildingRelations, function(buildingRelation, callback) {
getLevelRelations(buildingRelation, function(err, levelRelations) {
+ if (err) {
+ callback(err);
+ return;
+ }
+
levelRelations.forEach(function(level) {
for (var i=0; i<level.members.length; i++) {