Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
author= <jamietre@gmail.com>2015-09-03 18:22:39 +0300
committerRebecca Turner <me@re-becca.org>2015-09-18 01:20:25 +0300
commit95ee92ca44ded511712edee1f0399e5cee30c33a (patch)
treec448e4ce15949602669591da0f6bc420c195aa48 /lib
parent1d8996eb3966b75d275b0e90fc97ca53e8b61641 (diff)
install/deps: Report error gracefully with invalid URL format dependencies
Diffstat (limited to 'lib')
-rw-r--r--lib/install/deps.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/install/deps.js b/lib/install/deps.js
index de9d59f9c..ab1620874 100644
--- a/lib/install/deps.js
+++ b/lib/install/deps.js
@@ -352,7 +352,7 @@ function addDependency (name, versionSpec, tree, log, done) {
validate('SSOOF', arguments)
var next = andAddParentToErrors(tree, done)
var spec = name + '@' + versionSpec
- realizePackageSpecifier(spec, packageRelativePath(tree), function (er, req) {
+ realizePackageSpecifier(spec, packageRelativePath(tree), iferr(done, function (req) {
var child = findRequirement(tree, name, req)
if (child) {
resolveWithExistingModule(child, tree, log, iferr(next, function (child, log) {
@@ -365,7 +365,7 @@ function addDependency (name, versionSpec, tree, log, done) {
} else {
resolveWithNewModule(req, tree, log, next)
}
- })
+ }))
}
function resolveWithExistingModule (child, tree, log, next) {