1
0
Fork 0
mirror of https://github.com/actions/toolkit synced 2025-05-09 00:22:56 +00:00

Updated error type to generic to show warning

This commit is contained in:
Sankalp Kotewar 2022-05-23 05:39:42 +00:00 committed by GitHub
parent da52b35800
commit 9aecf41d21

View file

@ -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()