From 86a2830d75af5008f239583ccc2231a670092f29 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Mon, 30 Jun 2014 23:59:53 +0530 Subject: [PATCH] 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 --- bin/lib/check_reqs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lib/check_reqs.js b/bin/lib/check_reqs.js index 1c6f0f8c..3296acc1 100644 --- a/bin/lib/check_reqs.js +++ b/bin/lib/check_reqs.js @@ -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 )); } }); }