New Response Type
This commit is contained in:
1 parent
cd441954ec
commit
2f2e0dc2cc
5 files changed
+28
-10
No files matched your search
+2
-1
@@ -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.`
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user