You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2015/03/20 19:32:08 UTC

cordova-lib git commit: Show npm failure message when plugin fetch fails

Repository: cordova-lib
Updated Branches:
  refs/heads/master e30801ad4 -> f77bd5d14


Show npm failure message when plugin fetch fails

E.g.:
    Fetching from npm failed: No compatible version found:
    cordova-plugin-okhttp@'>=1.0.0-0 <2.0.0-0'
    Valid install targets:
    ["2.0.0"]


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

Branch: refs/heads/master
Commit: f77bd5d1400ab1f5b6b5d2cd04be9b42f1e416fd
Parents: e30801a
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Mar 20 14:31:39 2015 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Mar 20 14:31:39 2015 -0400

----------------------------------------------------------------------
 cordova-lib/src/plugman/registry/registry.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/f77bd5d1/cordova-lib/src/plugman/registry/registry.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/registry/registry.js b/cordova-lib/src/plugman/registry/registry.js
index e8e4dd8..9ed6cc3 100644
--- a/cordova-lib/src/plugman/registry/registry.js
+++ b/cordova-lib/src/plugman/registry/registry.js
@@ -361,7 +361,7 @@ function fetchPlugin(plugin, client, useNpmRegistry) {
         return unpack.unpackTgz(package_tgz, pluginDir);
     })
     .fail(function(error) {
-        events.emit('log', 'Fetching from ' + registryName + ' failed');
+        events.emit('log', 'Fetching from ' + registryName + ' failed: ' + error.message);
         return Q.reject(error);
     });
 }


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