cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: CB-5619 Avoid Error: Error ...
Date Tue, 10 Dec 2013 01:54:42 GMT
Updated Branches:
  refs/heads/master 73f299c76 -> 4a0d0be1a


CB-5619 Avoid Error: Error ...

Prevent errors like the following:
[Error: Error fetching plugin: Error: error: Could not fetch package information for imaginary.plugin]

https://github.com/apache/cordova-plugman/pull/39


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

Branch: refs/heads/master
Commit: 4a0d0be1ae7de67dee67a4779366df87faafa869
Parents: 73f299c
Author: Josh Soref <jsoref@blackberry.com>
Authored: Mon Dec 9 16:57:45 2013 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Mon Dec 9 20:54:34 2013 -0500

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


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4a0d0be1/src/install.js
----------------------------------------------------------------------
diff --git a/src/install.js b/src/install.js
index 37bd2b8..f23aa93 100644
--- a/src/install.js
+++ b/src/install.js
@@ -273,9 +273,9 @@ var runInstall = module.exports.runInstall = function runInstall(actions,
platfo
                             child_process.exec('git rev-parse --show-toplevel', { cwd:dep_url
}, function(err, stdout, stderr) {
                                 if (err) {
                                     if (err.code == 128) {
-                                        return d.reject(new Error('Error: Plugin ' + plugin_id
+ ' is not in git repository. All plugins must be in a git repository.'));
+                                        return d.reject(new Error('Plugin ' + plugin_id +
' is not in git repository. All plugins must be in a git repository.'));
                                     } else {
-                                        return d.reject(new Error('Error trying to locate
git repository for plugin.'));
+                                        return d.reject(new Error('Failed to locate git repository
for ' + plugin_id + ' plugin.'));
                                     }
                                 }
 

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4a0d0be1/src/registry/registry.js
----------------------------------------------------------------------
diff --git a/src/registry/registry.js b/src/registry/registry.js
index ccdd45a..37bb688 100644
--- a/src/registry/registry.js
+++ b/src/registry/registry.js
@@ -26,7 +26,7 @@ function getPackageInfo(args) {
     var d = Q.defer();
     http.get(settings.registry + '/' + name + '/' + version, function(res) {
          if(res.statusCode != 200) {
-             d.reject(new Error('error: Could not fetch package information for '+name));
+             d.reject(new Error('Failed to fetch package information for '+name));
          } else {
              var info = '';
              res.on('data', function(chunk) {


Mime
View raw message