diff --git a/dist/index.js b/dist/index.js index e8e286e..5976c83 100644 --- a/dist/index.js +++ b/dist/index.js @@ -23601,7 +23601,9 @@ async function run() { try { inputs = JSON.parse(inputsJson); } catch (e) { - error(`Failed to parse 'inputs' JSON string: ${e instanceof Error ? e.message : String(e)}`); + throw new Error(`Failed to parse 'inputs' JSON string: ${e instanceof Error ? e.message : String(e)}`, { + cause: e + }); } } const octokit = getOctokit(token); diff --git a/src/main.ts b/src/main.ts index 36f4f46..6bf1095 100644 --- a/src/main.ts +++ b/src/main.ts @@ -40,7 +40,9 @@ async function run(): Promise { try { inputs = JSON.parse(inputsJson) } catch (e) { - core.error(`Failed to parse 'inputs' JSON string: ${e instanceof Error ? e.message : String(e)}`) + throw new Error(`Failed to parse 'inputs' JSON string: ${e instanceof Error ? e.message : String(e)}`, { + cause: e, + }) } }