Skip to content

Commit

Permalink
Include key info for "expected hoisted" invariant (yarnpkg#7009)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwats authored and arcanis committed Feb 7, 2019
1 parent dac22dd commit 0e380a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/package-hoister.js
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ export default class PackageHoister {
for (let i = 0; i < keyParts.length; i++) {
const key = keyParts.slice(0, i + 1).join('#');
const hoisted = this.tree.get(key);
invariant(hoisted, 'expected hoisted manifest');
invariant(hoisted, `expected hoisted manifest for "${key}"`);
parts.push(this.config.getFolder(hoisted.pkg));
parts.push(keyParts[i]);
}
Expand Down

0 comments on commit 0e380a1

Please sign in to comment.