From 3f03e89129d12d4c9809eee5c754f32a844e038b Mon Sep 17 00:00:00 2001 From: Aparna Jyothi Date: Mon, 15 Jul 2024 18:01:45 +0530 Subject: [PATCH] change error to warning --- dist/cache-save/index.js | 2 +- src/cache-save.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js index aa4501f..9edc757 100644 --- a/dist/cache-save/index.js +++ b/dist/cache-save/index.js @@ -81165,7 +81165,7 @@ function saveCache(packageManager) { const cachePaths = JSON.parse(cachePathState); core.debug(`paths for caching are ${cachePaths.join(', ')}`); if (!isCacheDirectoryExists(cachePaths)) { - throw new Error(`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(', ')}`); + core.warning(`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join(', ')}`); } const primaryKey = core.getState(cache_distributor_1.State.STATE_CACHE_PRIMARY_KEY); const matchedKey = core.getState(cache_distributor_1.State.CACHE_MATCHED_KEY); diff --git a/src/cache-save.ts b/src/cache-save.ts index fbb481c..44dfbd1 100644 --- a/src/cache-save.ts +++ b/src/cache-save.ts @@ -38,7 +38,7 @@ async function saveCache(packageManager: string) { core.debug(`paths for caching are ${cachePaths.join(', ')}`); if (!isCacheDirectoryExists(cachePaths)) { - throw new Error( + core.warning( `Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePaths.join( ', ' )}`