make sure server quits if it's pre-launch and doesn't work

This commit is contained in:
Jonathan Lipps
2013-03-26 08:59:55 -07:00
parent 49c7297212
commit f365e46277
+1
View File
@@ -87,6 +87,7 @@ var main = function(args, readyCb, doneCb) {
appiumServer.preLaunch(function(err, appiumServer) {
if (err) {
logger.error("Could not pre-launch appium: " + err);
process.exit(1);
} else {
next(appiumServer);
}