Skip to content

Commit

Permalink
fix: getPackageJson error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Nov 9, 2018
1 parent 8629a5d commit 67b0c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/install-package/get-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = path => {
try {
return require(packageMetaPath);
} catch (error) {
if (isModuleNotFoundError(error, path)) return null;
if (isModuleNotFoundError(error, packageMetaPath)) return null;
throw error;
}
};

0 comments on commit 67b0c41

Please sign in to comment.