mirror of
https://github.com/actions/toolkit.git
synced 2026-08-15 00:00:25 +02:00
Fix error type so that size limit violation is shown as warning
This commit is contained in:
Vendored
+1
-1
@@ -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