Permalink
Browse files

read-installed errors just pass over the erroneous file

  • Loading branch information...
1 parent 43b2814 commit 71d2a5f5283287596f427a7b00755a2ba9a5d0c3 @isaacs isaacs committed Mar 25, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/utils/read-installed.js
@@ -140,7 +140,10 @@ function readInstalled_ (folder, parent, name, reqver, depth, maxDepth, cb) {
var errState = null
function next (er) {
if (errState) return
- if (er) return cb(errState = er)
+ if (er) {
+ errState = er
+ return cb(null, [])
+ }
//console.error('next', installed, obj && typeof obj, name, real)
if (!installed || !obj || !real) return
if (rpSeen[real]) return cb(null, rpSeen[real])

0 comments on commit 71d2a5f

Please sign in to comment.