mirror of
https://github.com/actions/toolkit
synced 2025-05-10 00:53:10 +00:00
Updated error type to generic to show warning
This commit is contained in:
parent
da52b35800
commit
9aecf41d21
1 changed files with 3 additions and 2 deletions
5
packages/cache/src/cache.ts
vendored
5
packages/cache/src/cache.ts
vendored
|
@ -160,8 +160,9 @@ export async function saveCache(
|
||||||
|
|
||||||
|
|
||||||
if(cachePaths.length === 0){
|
if(cachePaths.length === 0){
|
||||||
throw new ValidationError(
|
throw new Error(
|
||||||
`Path Validation Error: Path(s) specified in the action do not exist, hence no cache is being saved.`)
|
`Path Validation Error: Path(s) specified in the action do not exist, hence no cache is being saved.`
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const archiveFolder = await utils.createTempDirectory()
|
const archiveFolder = await utils.createTempDirectory()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue