mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
parent
86a2830d75
commit
0a3714e5e0
@ -81,7 +81,7 @@ module.exports.check_android = function() {
|
|||||||
}
|
}
|
||||||
return Q();
|
return Q();
|
||||||
}, function(stderr) {
|
}, 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.'));
|
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 {
|
} else {
|
||||||
return Q.reject(new Error('An error occurred while listing Android targets. Error: ' + stderr ));
|
return Q.reject(new Error('An error occurred while listing Android targets. Error: ' + stderr ));
|
||||||
|
Loading…
Reference in New Issue
Block a user