Add error handling for failed uploads
Code scanning - action / CodeQL-Build (push) Waiting to run

This commit is contained in:
Bassem Dghaidi
2024-12-02 02:39:22 -08:00
committed by GitHub
parent 2df79913f5
commit bf08ee6b81
4 changed files with 16 additions and 0 deletions
+4
View File
@@ -9848,6 +9848,10 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
} }
return response; return response;
} }
catch (error) {
core.debug(`Error uploading cache archive: ${error}`);
throw error;
}
finally { finally {
uploadProgress.stopDisplayTimer(); uploadProgress.stopDisplayTimer();
} }
+4
View File
@@ -9848,6 +9848,10 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
} }
return response; return response;
} }
catch (error) {
core.debug(`Error uploading cache archive: ${error}`);
throw error;
}
finally { finally {
uploadProgress.stopDisplayTimer(); uploadProgress.stopDisplayTimer();
} }
+4
View File
@@ -9848,6 +9848,10 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
} }
return response; return response;
} }
catch (error) {
core.debug(`Error uploading cache archive: ${error}`);
throw error;
}
finally { finally {
uploadProgress.stopDisplayTimer(); uploadProgress.stopDisplayTimer();
} }
+4
View File
@@ -9848,6 +9848,10 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
} }
return response; return response;
} }
catch (error) {
core.debug(`Error uploading cache archive: ${error}`);
throw error;
}
finally { finally {
uploadProgress.stopDisplayTimer(); uploadProgress.stopDisplayTimer();
} }