From ff176f76f4020369b61baebff3b822048d9d7498 Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Thu, 16 Oct 2014 16:37:42 -0700 Subject: [PATCH] Make messages from add-platform and remove-platform meteoric --- tools/commands-cordova.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index 44b97d930e..779efaf3ba 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -2328,7 +2328,7 @@ main.registerCommand({ try { _.each(platforms, function (platform) { if (_.contains(currentPlatforms, platform)) { - throw new Error("platform " + platform + " already added"); + throw new Error(platform + ": platform is already added"); } isValidPlatform(platform); @@ -2373,7 +2373,7 @@ main.registerCommand({ }); _.each(platforms, function (platform) { - Console.info("added platform " + platform); + Console.info(platform + ": added platform"); }); }); @@ -2389,17 +2389,17 @@ main.registerCommand({ _.each(platforms, function (platform) { // explain why we can't remove server or browser platforms if (_.contains(project.getDefaultPlatforms(), platform)) { - Console.stdout.write("cannot remove platform " + platform + - " in this version of Meteor\n"); + Console.stdout.write(platform + ": cannot remove platform " + + "in this version of Meteor\n"); return; } if (_.contains(project.getPlatforms(), platform)) { - Console.stdout.write("removed platform " + platform + "\n"); + Console.stdout.write(platform + ": removed platform\n"); return; } - Console.stdout.write(platform + " is not in this project\n"); + Console.stdout.write(platform + ": platform is not in this project\n"); }); project.removeCordovaPlatforms(platforms);