This commit is contained in:
Dmitry Shibanov 2021-12-23 16:39:13 +03:00
parent b166994869
commit 5ae4ffe22e
3 changed files with 3 additions and 3 deletions

View file

@ -3838,7 +3838,7 @@ exports.supportedPackageManagers = {
exports.getCommandOutput = (toolCommand) => __awaiter(void 0, void 0, void 0, function* () {
let { stdout, stderr, exitCode } = yield exec.getExecOutput(toolCommand, undefined, { ignoreReturnCode: true });
if (exitCode) {
stderr = !stderr
stderr = !stderr.trim()
? `The '${toolCommand}' command failed with exit code: ${exitCode}`
: stderr;
throw new Error(stderr);