Don't unconditionally exit after starting Cordova apps.

This commit is contained in:
Emily Stark
2014-10-22 13:51:06 -07:00
parent 480b05bc2c
commit da4d925a7c

View File

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