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
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-02-15 20:26:49 +0400
committerisaacs <i@izs.me>2012-02-15 20:26:49 +0400
commit1b2635ab3103ff18687e6fdb1b31f2755c36d338 (patch)
treed90a706c10e49a1d73057b4b445d523c70b8578d /lib/utils/read-json.js
parent5a75d8bd3887bad6577814babd467f70e9e763ff (diff)
singlefile Error should be swallowed if index parsed
Diffstat (limited to 'lib/utils/read-json.js')
-rw-r--r--lib/utils/read-json.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/read-json.js b/lib/utils/read-json.js
index 5f9eb7fb4..8fdd60f66 100644
--- a/lib/utils/read-json.js
+++ b/lib/utils/read-json.js
@@ -102,7 +102,7 @@ function readJson (jsonFile, opts, cb) {
if (er2) return cb(er)
data = parseIndex(data)
if (!data) return cb(er)
- thenLoad(er, data)
+ thenLoad(null, data)
})
}
thenLoad(er, data)