From fd130fea0dfe2ab0c7dbb9fe0fd6ab0776125d25 Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Mon, 20 Oct 2014 12:24:16 -0700 Subject: [PATCH] Print a warning when building unavailable platforms --- tools/commands-cordova.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index 0eb0c0eaa5..51fcc36666 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -81,6 +81,11 @@ cordova.buildTargets = function (localPath, targets, options) { checkRequestedPlatforms(platforms); _.each(platforms, function (platform) { + if (! _.contains(availablePlatforms, platform)) { + Console.warn(platform + ': skipping platform not available on your system'); + return; + } + requirePlatformReady(platform); });