Skip to content

Commit

Permalink
fix: catch non-zero exit code for pnpm install
Browse files Browse the repository at this point in the history
See #2108.
  • Loading branch information
fwouts committed Oct 16, 2023
1 parent b2dc28d commit db06a24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion loader/src/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export async function loadModules({
);
pnpmProcess.stdout?.on("data", (chunk) => process.stdout.write(chunk));
pnpmProcess.stderr?.on("data", (chunk) => process.stderr.write(chunk));
if ((await pnpmProcess).failed) {
const pnpmResult = await pnpmProcess;
if (pnpmResult.failed || pnpmResult.exitCode !== 0) {
throw new Error(`Unable to install dependencies`);
}
// Note: The bracketed tag is required for VS Code and IntelliJ to detect end of installation.
Expand Down

0 comments on commit db06a24

Please sign in to comment.