Skip to content

Commit

Permalink
Merge pull request #15873 from webpack/more-informative-error
Browse files Browse the repository at this point in the history
more informative error in ProvideSharedPlugin
  • Loading branch information
sokra committed Jun 2, 2022
2 parents b1cc471 + e71d3b4 commit b8748cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/sharing/ProvideSharedPlugin.js
Expand Up @@ -129,8 +129,7 @@ class ProvideSharedPlugin {
details =
"No description file (usually package.json) found. Add description file with name and version, or manually specify version in shared config.";
} else if (!descriptionFileData.version) {
details =
"No version in description file (usually package.json). Add version to description file, or manually specify version in shared config.";
details = `No version in description file (usually package.json). Add version to description file ${resourceResolveData.descriptionFilePath}, or manually specify version in shared config.`;
} else {
version = descriptionFileData.version;
}
Expand Down

0 comments on commit b8748cf

Please sign in to comment.