[fix]: if the path does not exist log an error rather than crashing

This commit is contained in:
Ryan LaForge 2022-09-23 13:01:47 -06:00
parent e7fbd54975
commit 8f5dc4316c

View File

@ -35,7 +35,8 @@ export const cacheBinary = async () => {
const primaryKey = core.getState(State.CachePrimaryKey);
const path = core.getState(State.BinaryPath);
if (!fs.existsSync(path)) {
throw new Error(`Cache folder path doesn't exist on disk: ${path}`);
core.warning(`Cache folder path doesn't exist on disk, skipping cache: ${path}`);
return;
}
core.debug(