Fix for android not being in PATH check on Windows

close #103
This commit is contained in:
Eion Robb 2014-06-22 09:43:30 +12:00 committed by Andrew Grieve
parent 86a2830d75
commit 0a3714e5e0

View File

@ -81,7 +81,7 @@ module.exports.check_android = function() {
}
return Q();
}, function(stderr) {
if (stderr.match(/command\snot\sfound/)) {
if (stderr.match(/command\snot\sfound/) || stderr.match(/is not recognized as an internal or external command/)) {
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. Error: ' + stderr ));