@@ -8880,9 +8880,12 @@ function uploadChunk(httpClient, resourceUrl, openStream, start, end) {
88808880 'Content-Type': 'application/octet-stream',
88818881 'Content-Range': getContentRange(start, end)
88828882 };
8883- yield requestUtils_1.retryHttpClientResponse(`uploadChunk (start: ${start}, end: ${end})`, () => __awaiter(this, void 0, void 0, function* () {
8883+ const uploadChunkResponse = yield requestUtils_1.retryHttpClientResponse(`uploadChunk (start: ${start}, end: ${end})`, () => __awaiter(this, void 0, void 0, function* () {
88848884 return httpClient.sendStream('PATCH', resourceUrl, openStream(), additionalHeaders);
88858885 }));
8886+ if (!requestUtils_1.isSuccessStatusCode(uploadChunkResponse.message.statusCode)) {
8887+ throw new Error(`Cache service responded with ${uploadChunkResponse.message.statusCode} during upload chunk.`);
8888+ }
88868889 });
88878890}
88888891function uploadFile(httpClient, cacheId, archivePath, options) {
@@ -22772,7 +22775,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
2277222775var __importStar = (this && this.__importStar) || function (mod) {
2277322776 if (mod && mod.__esModule) return mod;
2277422777 var result = {};
22775- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22778+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype. hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
2277622779 __setModuleDefault(result, mod);
2277722780 return result;
2277822781};
@@ -28992,7 +28995,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
2899228995var __importStar = (this && this.__importStar) || function (mod) {
2899328996 if (mod && mod.__esModule) return mod;
2899428997 var result = {};
28995- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
28998+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype. hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
2899628999 __setModuleDefault(result, mod);
2899729000 return result;
2899829001};
@@ -86609,7 +86612,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
8660986612var __importStar = (this && this.__importStar) || function (mod) {
8661086613 if (mod && mod.__esModule) return mod;
8661186614 var result = {};
86612- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
86615+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype. hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
8661386616 __setModuleDefault(result, mod);
8661486617 return result;
8661586618};
@@ -92258,7 +92261,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
9225892261var __importStar = (this && this.__importStar) || function (mod) {
9225992262 if (mod && mod.__esModule) return mod;
9226092263 var result = {};
92261- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
92264+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype. hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
9226292265 __setModuleDefault(result, mod);
9226392266 return result;
9226492267};
@@ -107561,7 +107564,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
107561107564var __importStar = (this && this.__importStar) || function (mod) {
107562107565 if (mod && mod.__esModule) return mod;
107563107566 var result = {};
107564- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
107567+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype. hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
107565107568 __setModuleDefault(result, mod);
107566107569 return result;
107567107570};
0 commit comments