diff options
author | isaacs <i@izs.me> | 2010-05-06 01:15:04 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-05-06 01:15:04 +0400 |
commit | 0c3e3ac88ba40f19e6275c723f88983d87de77c5 (patch) | |
tree | 1cadf3c487f25534b1b10360f8ddf849d93fd794 /lib | |
parent | 8688302cbfe839c8126f9903d9212ea56b298020 (diff) |
Fix for bug reported by @mikeal http://gist.github.com/391441
Diffstat (limited to 'lib')
-rw-r--r-- | lib/install.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js index 7caaa62cd..b6835e2ee 100644 --- a/lib/install.js +++ b/lib/install.js @@ -226,7 +226,8 @@ function installLocalTarball (tarball, cb) { , [unpackTar, tarball, folder] , function (er) { if (er) return cb(er) - readJson(path.join(folder, "package.json"), function (er,data) { + readJson(path.join(folder, "package.json"), function (er, data) { + if (er) return cb(er) chain ( [moveIntoPlace, folder, data] , [log, data._id, "moved into place"] |