From 27bb5b2e82045cb4eff4fb3ab47c3a1b9cfdf4e0 Mon Sep 17 00:00:00 2001 From: sersoft-bot Date: Mon, 24 Oct 2022 12:25:07 +0000 Subject: [PATCH] [AUTO] Update generated code --- dist/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/index.js b/dist/index.js index 1f85c48..0566c6e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -37,9 +37,7 @@ const fs_1 = __nccwpck_require__(147); const path = __importStar(__nccwpck_require__(17)); const os = __importStar(__nccwpck_require__(37)); async function runCmd(cmd, args) { - const output = await exec.getExecOutput(cmd, args, { - silent: !core.isDebug(), - }); + const output = await exec.getExecOutput(cmd, args, { silent: !core.isDebug() }); if (output.stderr.length > 0) core.warning(`Command execution wrote lines to stderr:\n${output.stderr}`); return output.stdout; @@ -198,10 +196,12 @@ async function main() { } catch (error) { const msg = `Failed to convert ${dest}: ${error}`; - if (error instanceof Error) + if (error instanceof Error) { conversionFailures.push(error); - else + } + else { conversionFailures.push(new Error(msg)); + } if (ignoreConversionFailures) { core.info(msg); }