From 14aa7c4bf4aa7d364e1faafd55244b8cb91a047d Mon Sep 17 00:00:00 2001 From: David Glasser Date: Mon, 23 Jun 2014 21:14:29 -0700 Subject: [PATCH] avoid terrible error there was already a better error hidden! --- tools/compiler.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/compiler.js b/tools/compiler.js index fcbea04bf0..86b9ba157f 100644 --- a/tools/compiler.js +++ b/tools/compiler.js @@ -82,7 +82,13 @@ compiler.eachUsedUnibuild = function ( while (!_.isEmpty(usesToProcess)) { var use = usesToProcess.shift(); - var unibuild = packageLoader.getUnibuild(use["package"], arch); + var unibuild = packageLoader.getUnibuild(use.package, arch); + if (!unibuild) { + // The package exists but there's no unibuild for us. A buildmessage has + // already been issued. Recover by skipping. + continue; + } + if (_.has(processedBuildId, unibuild.id)) continue;