Fix error type so that size limit violation is shown as warning

This commit is contained in:
Anurag Chauhan
2022-04-07 09:08:16 +00:00
committed by GitHub
parent f8a69bc473
commit 0b2505c754
3 changed files with 3 additions and 3 deletions

View File

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