From 0fb52157a11681a5ff6a012bf9ef5e9029fb40cd Mon Sep 17 00:00:00 2001 From: Martijn Walraven Date: Wed, 20 Jan 2016 14:48:17 -0800 Subject: [PATCH] Clarify warnings for unknown keys in App.icons and App.launchScreens --- tools/cordova/builder.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/cordova/builder.js b/tools/cordova/builder.js index e1473bcf2c..d85028de50 100644 --- a/tools/cordova/builder.js +++ b/tools/cordova/builder.js @@ -521,7 +521,8 @@ Valid platforms are: ios, android.`); _.keys(iconsIosSizes).concat(_.keys(iconsAndroidSizes)); _.each(icons, function (value, key) { if (!_.include(validDevices, key)) { - Console.warn(key + ": unknown key in App.icons configuration."); + Console.labelWarn(`${key}: unknown key in App.icons \ +configuration. The key may be deprecated.`); } }); _.extend(builder.imagePaths.icon, icons); @@ -566,7 +567,8 @@ Valid platforms are: ios, android.`); _.each(launchScreens, function (value, key) { if (!_.include(validDevices, key)) { - Console.warn(key + ": unknown key in App.launchScreens configuration."); + Console.labelWarn(`${key}: unknown key in App.launchScreens \ +configuration. The key may be deprecated.`); } }); _.extend(builder.imagePaths.splash, launchScreens);