Skip to content

Commit

Permalink
Return a promise when empty dependencies are detected
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielle Adams committed Jun 11, 2020
1 parent 74305db commit be3c45b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/inflate-shrinkwrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function inflateShrinkwrap (topPath, tree, swdeps, opts) {
let message = `Object for dependency "${name}" is empty.\n`
message += 'Something went wrong. Regenerate the package-lock.json with "npm install".\n'
message += 'If using a shrinkwrap, regenerate with "npm shrinkwrap".'
return errorHandler(message)
return Promise.reject(errorHandler(message))
}

return inflatableChild(
Expand Down

0 comments on commit be3c45b

Please sign in to comment.