Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
handle error from readPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
smikes authored and othiym23 committed May 15, 2015
1 parent f70dea9 commit 0e2c091
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,7 @@ function write (target, targetFolder, context, cb_) {
// before continuing to installing dependencies, check for a shrinkwrap.
var opt = { dev: npm.config.get("dev") }
readDependencies(context, targetFolder, opt, function (er, data, wrap) {
if (er) return cb(er);
var deps = prepareForInstallMany(data, "dependencies", bundled, wrap,
family)
var depsTargetFolder = targetFolder
Expand Down

1 comment on commit 0e2c091

@xjamundx
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found this to be handy in my experience for catching this sort of stuff:
http://eslint.org/docs/rules/handle-callback-err

Please sign in to comment.