diff options
author | isaacs <i@izs.me> | 2011-02-22 09:03:04 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-02-22 09:04:35 +0300 |
commit | 67aa1d77bb179dd9f2fc3c0320993ba9bf3f93ee (patch) | |
tree | 186c9c645c5b79c260f0379fdf569282c3ff14ef | |
parent | f2d59032ac8dd21d8817272cc2647377dfe42c1e (diff) |
blow through errors in deactivate
check out, npm link, then remove the source, and npm rm would be
broken, because the deactivate coudln't read the json.
-rw-r--r-- | lib/deactivate.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/deactivate.js b/lib/deactivate.js index dcc691ad7..458a29c7f 100644 --- a/lib/deactivate.js +++ b/lib/deactivate.js @@ -83,7 +83,7 @@ function preDeactivate (pkg, cb) { if (er) return cb() var version = path.basename(p) readJson(jsonFile, function (er, data) { - if (er) return cb(er) + if (er) return cb() data.version = version data._id = data.name+"@"+data.version npm.set(data) |