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); + } } ); }