1
0
Fork 0

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

pull/1050/head
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

2
packages/cache/package-lock.json generated vendored
View File

@ -1,6 +1,6 @@
{
"name": "@actions/cache",
"version": "2.0.1",
"version": "2.0.2",
"lockfileVersion": 2,
"requires": true,
"packages": {

View File

@ -1,6 +1,6 @@
{
"name": "@actions/cache",
"version": "2.0.1",
"version": "2.0.2",
"preview": true,
"description": "Actions cache lib",
"keywords": [

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)