From da4d925a7c5eae8e09ced393808adcf93987f309 Mon Sep 17 00:00:00 2001 From: Emily Stark Date: Wed, 22 Oct 2014 13:51:06 -0700 Subject: [PATCH] Don't unconditionally exit after starting Cordova apps. --- tools/commands-cordova.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index 26873b5b10..5f9d1a9e5b 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -1039,7 +1039,7 @@ var execCordovaOnPlatform = function (localPath, platformName, options) { chalk.green("Try running again with the --verbose option."), "" ].join("\n")); - } else { + } else if (err) { Console.stderr.write([ "", chalk.green("Could not start your app."), @@ -1050,7 +1050,9 @@ var execCordovaOnPlatform = function (localPath, platformName, options) { // Don't throw an error or print the stack trace, but still exit the // program because we have failed to do the expected thing - process.exit(2); + if (err) { + process.exit(2); + } } ); }