diff --git a/dist/index.js b/dist/index.js index b94e575..0a1e2e3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1501,7 +1501,7 @@ async function run() { if (!build) { core.error(`Could not find build matching version ${version}.`); core.setFailed(`No existing build for app ID ${appId} matches version ${version}`); - return; + throw new Error(`Unexpected build status: "${status}" yet no matching build found`); } core.info(`Found build matching version ${version} OK: ${JSON.stringify(build)}`); diff --git a/index.js b/index.js index fc2d3c5..10a8a4e 100644 --- a/index.js +++ b/index.js @@ -125,7 +125,7 @@ async function run() { if (!build) { core.error(`Could not find build matching version ${version}.`); core.setFailed(`No existing build for app ID ${appId} matches version ${version}`); - return; + throw new Error(`Unexpected build status: "${status}" yet no matching build found`); } core.info(`Found build matching version ${version} OK: ${JSON.stringify(build)}`);