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

github: close #113
This commit is contained in:
Refael Ackermann 2014-08-18 14:53:07 +03:00 committed by Andrew Grieve
parent 71e72f215d
commit 94943a9a84

View File

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