From fc1ac62569ea1a04602a51902291b023f015a113 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 --- src/cache.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cache.ts b/src/cache.ts index e5b5f6a..473e5eb 100644 --- a/src/cache.ts +++ b/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()