From 9aecf41d21d47077df5f93691c9064dec2213d2c Mon Sep 17 00:00:00 2001 From: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com> Date: Mon, 23 May 2022 05:39:42 +0000 Subject: [PATCH] Updated error type to generic to show warning --- packages/cache/src/cache.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cache/src/cache.ts b/packages/cache/src/cache.ts index e5b5f6a4..473e5eb2 100644 --- a/packages/cache/src/cache.ts +++ b/packages/cache/src/cache.ts @@ -160,8 +160,9 @@ export async function saveCache( if(cachePaths.length === 0){ - throw new ValidationError( - `Path Validation Error: Path(s) specified in the action do not exist, hence no cache is being saved.`) + throw new Error( + `Path Validation Error: Path(s) specified in the action do not exist, hence no cache is being saved.` + ) } const archiveFolder = await utils.createTempDirectory()