Merge pull request #1050 from actions/fix_cache_error_type

Fix error type so that cache size limit violation is shown as warning( similar to previous error)
This commit is contained in:
Anurag Chauhan authored and GitHub committed 2022-04-07 14:46:23 +05:30
commit 4f1aeb7d92
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@actions/cache",
"version": "2.0.1",
"version": "2.0.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@actions/cache",
"version": "2.0.1",
"version": "2.0.2",
"preview": true,
"description": "Actions cache lib",
"keywords": [
+1 -1
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)