mirror of
https://github.com/actions/setup-node.git
synced 2025-12-26 02:03:38 +00:00
add check of exit code
This commit is contained in:
parent
360ab8b75b
commit
fe0d1625a2
3 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ export const supportedPackageManagers: SupportedPackageManagers = {
|
|||
export const getCommandOutput = async (toolCommand: string) => {
|
||||
const {stdout, stderr, exitCode} = await exec.getExecOutput(toolCommand);
|
||||
|
||||
if (stderr) {
|
||||
if (exitCode && stderr) {
|
||||
throw new Error(stderr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue