cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [6/8] cordova-lib git commit: CB-8898 Makes error message descriptive when `requirements` is called outside of cordova project.
Date Thu, 04 Jun 2015 17:36:22 GMT
CB-8898 Makes error message descriptive when `requirements` is called outside of cordova project.


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

Branch: refs/heads/5.1.x
Commit: bb02750833047b5b92f63e959f964ae7f192146d
Parents: 8778090
Author: Vladimir Kotikov <v-vlkoti@microsoft.com>
Authored: Wed Jun 3 12:33:58 2015 +0300
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Thu Jun 4 10:25:19 2015 -0700

----------------------------------------------------------------------
 cordova-lib/src/cordova/requirements.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/bb027508/cordova-lib/src/cordova/requirements.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/requirements.js b/cordova-lib/src/cordova/requirements.js
index dfa150c..35e0ba4 100644
--- a/cordova-lib/src/cordova/requirements.js
+++ b/cordova-lib/src/cordova/requirements.js
@@ -33,10 +33,10 @@ var CordovaError = require('../CordovaError');
  *                                      check results for each platform
  */
 module.exports = function check_reqs(platforms) {
-    var projectRoot = cordova_util.isCordova();
-    var platformsDir = path.join(projectRoot, 'platforms');
     platforms = cordova_util.preProcessOptions(platforms).platforms;
 
+    var projectRoot = cordova_util.isCordova();
+    var platformsDir = path.join(projectRoot, 'platforms');
     var platformChecks = platforms.map(function (platform) {
         var modulePath = path.join(platformsDir, platform, 'cordova', 'lib', 'check_reqs');
         try {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message