You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by br...@apache.org on 2013/06/06 18:05:41 UTC

git commit: Fix misleading error message for failed run of the version script.

Updated Branches:
  refs/heads/master cc4f670b1 -> 53690b624


Fix misleading error message for failed run of the version script.


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

Branch: refs/heads/master
Commit: 53690b624b182bfc783b8545d03e6d2aa1a548e5
Parents: cc4f670
Author: Braden Shepherdson <br...@gmail.com>
Authored: Thu Jun 6 12:05:15 2013 -0400
Committer: Braden Shepherdson <br...@gmail.com>
Committed: Thu Jun 6 12:05:15 2013 -0400

----------------------------------------------------------------------
 src/install.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/53690b62/src/install.js
----------------------------------------------------------------------
diff --git a/src/install.js b/src/install.js
index f25f907..a16a133 100644
--- a/src/install.js
+++ b/src/install.js
@@ -88,7 +88,7 @@ function runInstall(actions, platform, project_dir, plugin_dir, plugins_dir, opt
             if(engine.attrib["name"].toLowerCase() === "cordova"){
                 var engineVersion = engine.attrib["version"];
                 if(versionScript.code>0){
-                    var err = new Error('File missing: ' + versionPath);
+                    var err = new Error('Failed to identify Cordova version: ' + versionPath + '\n' + versionScript.output);
                     if (callback) callback(err);
                     else throw err;
                 }else{