CB-7325 Fix error message in android_sdk_version.js when missing SDK on windows

github: close #113


Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/12ec1b36
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/12ec1b36
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/12ec1b36

Branch: refs/heads/master
Commit: 12ec1b36d8d4d453fc30e858df26636ae294c763
Parents: 0ad1ae4
Author: Refael Ackermann <[email protected]>
Authored: Mon Aug 18 14:53:07 2014 +0300
Committer: Archana Naik <[email protected]>
Committed: Thu Aug 28 11:11:10 2014 -0700

----------------------------------------------------------------------
 bin/lib/android_sdk_version.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/12ec1b36/bin/lib/android_sdk_version.js
----------------------------------------------------------------------
diff --git a/bin/lib/android_sdk_version.js b/bin/lib/android_sdk_version.js
index d03e1e7..e592378 100755
--- a/bin/lib/android_sdk_version.js
+++ b/bin/lib/android_sdk_version.js
@@ -51,7 +51,7 @@ get_sdks = function() {
 
         return Q();
     }, function(stderr) {
-        if (stderr.match(/command\snot\sfound/)) {
+        if (stderr.match(/command\snot\sfound/) || stderr.match(/'android' is 
not recognized/)) {
             return Q.reject(new Error('The command \"android\" failed. Make 
sure you have the latest Android SDK installed, and the \"android\" command 
(inside the tools/ folder) is added to your path.'));
         } else {
             return Q.reject(new Error('An error occurred while listing Android 
targets'));

Reply via email to