Displaying error when regex does not match.

On my ubuntu when `android` is not found typical output is:

```
   /bin/sh: 1: android: not found
```
close #104
This commit is contained in:
Ankit Jain 2014-06-30 23:59:53 +05:30 committed by Andrew Grieve
parent 9300e97d2b
commit 86a2830d75

View File

@ -84,7 +84,7 @@ module.exports.check_android = function() {
if (stderr.match(/command\snot\sfound/)) {
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'));
return Q.reject(new Error('An error occurred while listing Android targets. Error: ' + stderr ));
}
});
}