feat(compartment-mapper): Add actionable hint to linker error
MODIFY
packages/compartment-mapper/src/assemble.js
packages/compartment-mapper/src/assemble.js
@@ -175,7 +175,11 @@ const makeModuleMapHook = (
// compartments.
const module = exitModules[exit];
if (module === undefined) {
- throw new Error(`Cannot import missing external module ${q(exit)}`);
+ throw new Error(
+ `Cannot import missing external module ${q(
+ exit,
+ )}, may be missing from ${compartmentName} package.json`,
+ );
}
return module;
}

feat(compartment-mapper): Add actionable hint to linker error