mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-01 12:53:16 +08:00
Fix error type so that size limit violation is shown as warning
This commit is contained in:
2
packages/cache/src/cache.ts
vendored
2
packages/cache/src/cache.ts
vendored
@@ -197,7 +197,7 @@ export async function saveCache(
|
||||
if (reserveCacheResponse?.result?.cacheId) {
|
||||
cacheId = reserveCacheResponse?.result?.cacheId
|
||||
} else if (reserveCacheResponse?.statusCode === 400) {
|
||||
throw new ReserveCacheError(
|
||||
throw new Error(
|
||||
reserveCacheResponse?.error?.message ??
|
||||
`Cache size of ~${Math.round(
|
||||
archiveFileSize / (1024 * 1024)
|
||||
|
||||
Reference in New Issue
Block a user