From 4bbb03db2961dcdb0af1a8cbb3b79387a00ff3ab Mon Sep 17 00:00:00 2001 From: Sashko Stubailo Date: Tue, 21 Oct 2014 14:44:00 -0700 Subject: [PATCH] Add message about not being able to start app on Android device Also, don't print the stack trace in this case --- tools/commands-cordova.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index 1e80c7d33c..d806fce763 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -1022,11 +1022,14 @@ var execCordovaOnPlatform = function (localPath, platformName, options) { if (err && platform === "android" && isDevice) { Console.stderr.write([ "", + chalk.green("Could not start the app on your device. Is it plugged in?"), chalk.green("Instructions for running your app on an Android device:"), chalk.cyan("https://github.com/meteor/meteor/wiki/How-to-run-your-app-on-an-Android-device"), "" ].join("\n")); + process.exit(2); + } else if (err) { throw err; } }