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:
Diffstat (limited to 'lib/bugs.js')
-rw-r--r--lib/bugs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bugs.js b/lib/bugs.js
index 604748a97..be79ab30e 100644
--- a/lib/bugs.js
+++ b/lib/bugs.js
@@ -25,7 +25,7 @@ function bugs (args, cb) {
else if (er) return cb (er)
if (!s.isDirectory()) return callRegistry(n, cb)
readJson(path.resolve(n, "package.json"), function(er, d) {
- if (er) return cb(err)
+ if (er) return cb(er)
getUrlAndOpen(d, cb)
})
})