Repository: cordova-coho
Updated Branches:
  refs/heads/master a7567083d -> f77d4406e


CB-6941 gnode: Tell people to run npm install when requirements are missing


Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/f77d4406
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/f77d4406
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/f77d4406

Branch: refs/heads/master
Commit: f77d4406e0520f5772cbde7aaedcb81788a671a1
Parents: a756708
Author: Josh Soref <[email protected]>
Authored: Fri Jun 13 15:36:31 2014 -0400
Committer: Josh Soref <[email protected]>
Committed: Fri Jun 13 15:36:31 2014 -0400

----------------------------------------------------------------------
 coho | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/f77d4406/coho
----------------------------------------------------------------------
diff --git a/coho b/coho
index 2b63b8b..8bd89e9 100755
--- a/coho
+++ b/coho
@@ -21,6 +21,11 @@ under the License.
 try {
     eval('(function*(){})');
 } catch (e) {
-    require('gnode'); // Enable generators support
+    try {
+        require('gnode'); // Enable generators support
+    } catch (e) {
+        console.log('Please run "npm install" from this directory:\n\t' + 
__dirname);
+        process.exit(2);
+    }
 }
 require('./src/main')();

Reply via email to