Skip to content

Commit

Permalink
Show pnpm install cmd log If error occur
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Oct 9, 2024
1 parent 7d267e8 commit 19fa87b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion commands/audit/sca/pnpm/pnpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ func installProjectIfNeeded(pnpmExecPath, workingDir string) (dirForDependencies
err = fmt.Errorf("failed copying project to temp dir: %w", err)
return
}
err = getPnpmCmd(pnpmExecPath, dirForDependenciesCalculation, "install", npm.IgnoreScriptsFlag).GetCmd().Run()
output, err := getPnpmCmd(pnpmExecPath, dirForDependenciesCalculation, "install", npm.IgnoreScriptsFlag).GetCmd().CombinedOutput()
if err != nil {
err = fmt.Errorf("failed to install project: %w\n%s", err, string(output))
}
return
}

Expand Down

0 comments on commit 19fa87b

Please sign in to comment.