diff --git a/src/cache-save.ts b/src/cache-save.ts index 8072bb6..121d9a2 100644 --- a/src/cache-save.ts +++ b/src/cache-save.ts @@ -35,8 +35,7 @@ export const cacheBinary = async () => { const primaryKey = core.getState(State.CachePrimaryKey); const path = core.getState(State.BinaryPath); if (!fs.existsSync(path)) { - core.warning(`Cache folder path doesn't exist on disk: ${path} ... skipping cache`); - return; + throw new Error(`Cache folder path doesn't exist on disk: ${path}`); } core.debug(