Skip to content

Commit

Permalink
Revert "[fix]: if the path does not exist log an error rather than cr…
Browse files Browse the repository at this point in the history
…ashing"

This reverts commit 8add1f6.
  • Loading branch information
r-LaForge committed Sep 23, 2022
1 parent 8add1f6 commit e3f7fe0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cache-save.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e3f7fe0

Please sign in to comment.