Skip to content

Commit

Permalink
fix(npm): use stdout for Yarn if stderr is empty (#12506)
Browse files Browse the repository at this point in the history
  • Loading branch information
ylemkimon committed Nov 5, 2021
1 parent a48eccf commit c690dd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/manager/npm/post-update/index.ts
Expand Up @@ -608,7 +608,7 @@ export async function getAdditionalFiles(
}
artifactErrors.push({
lockFile: yarnLock,
stderr: res.stderr,
stderr: res.stderr || res.stdout,
});
} else {
const existingContent = await getFile(
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/npm/post-update/yarn.ts
Expand Up @@ -249,7 +249,7 @@ export async function generateLockFile(
throw new ExternalHostError(err, npmId);
}
}
return { error: true, stderr: err.stderr };
return { error: true, stderr: err.stderr, stdout: err.stdout };
}
return { lockFile };
}

0 comments on commit c690dd0

Please sign in to comment.