New Response Type

This commit is contained in:
Deepak Dahiya authored and GitHub committed 2022-03-31 09:42:59 +00:00
1 parent cd441954ec
commit 2f2e0dc2cc
5 files changed
+28 -10

No files matched your search

+2 -1
View File
@@ -182,8 +182,9 @@ export async function saveCache(
cacheSize
})
if(reserveCacheResponse?.statusCode === 400){
if(reserveCacheResponse?.statusCode === 400 && reserveCacheResponse?.typeKey === "InvalidReserveCacheRequestException"){
throw new ReserveCacheError(
reserveCacheResponse?.message ??
`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the data cap limit, not saving cache.`
)
}