You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2013/09/16 21:26:24 UTC

webworks commit: [CB-4762] Added a fix to the run script to error out when the IP is not found

Updated Branches:
  refs/heads/master 5334f108d -> fbe4de9c1


[CB-4762] Added a fix to the run script to error out when the IP is not found

Reviewed by Bryan Higgins <bh...@blackberry.com>
Tested by Daniel Audino <da...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/fbe4de9c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/fbe4de9c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/fbe4de9c

Branch: refs/heads/master
Commit: fbe4de9c1f4f91fe95106177696bc73decbc8ade
Parents: 5334f10
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Mon Sep 9 11:16:37 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Mon Sep 16 15:28:59 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/templates/project/cordova/lib/run | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/fbe4de9c/blackberry10/bin/templates/project/cordova/lib/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/run b/blackberry10/bin/templates/project/cordova/lib/run
index 3aa386d..e07965c 100755
--- a/blackberry10/bin/templates/project/cordova/lib/run
+++ b/blackberry10/bin/templates/project/cordova/lib/run
@@ -109,7 +109,7 @@ function getTargetName (done) {
             {
                 ip: function (done) {
                     ipFinder(function (ip) {
-                        done(null, ip);
+                        done(ip ? null : "No connected BlackBerry 10 " + targetType + " found", ip);
                     });
                 },
                 devicePass: function (done) {
@@ -127,8 +127,6 @@ function getTargetName (done) {
             function (err, results) {
                 if (err) {
                     done(err);
-                } else if (!results.ip) {
-                    done("No connected BlackBerry 10 " + targetType + " found");
                 } else {
                     program.devicepass = results.devicePass;
                     checkDeviceInfo(results.ip, targetType, results.devicePass, done);