From bf08ee6b81d5fb8015c185fd9737ec9ee3e12b3d Mon Sep 17 00:00:00 2001 From: Bassem Dghaidi <568794+Link-@users.noreply.github.com> Date: Mon, 2 Dec 2024 02:39:22 -0800 Subject: [PATCH] Add error handling for failed uploads --- dist/restore-only/index.js | 4 ++++ dist/restore/index.js | 4 ++++ dist/save-only/index.js | 4 ++++ dist/save/index.js | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index 92385b9..a6d490b 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -9848,6 +9848,10 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { } return response; } + catch (error) { + core.debug(`Error uploading cache archive: ${error}`); + throw error; + } finally { uploadProgress.stopDisplayTimer(); } diff --git a/dist/restore/index.js b/dist/restore/index.js index 5623f5f..f35b1bd 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -9848,6 +9848,10 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { } return response; } + catch (error) { + core.debug(`Error uploading cache archive: ${error}`); + throw error; + } finally { uploadProgress.stopDisplayTimer(); } diff --git a/dist/save-only/index.js b/dist/save-only/index.js index 8995e8f..b156461 100644 --- a/dist/save-only/index.js +++ b/dist/save-only/index.js @@ -9848,6 +9848,10 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { } return response; } + catch (error) { + core.debug(`Error uploading cache archive: ${error}`); + throw error; + } finally { uploadProgress.stopDisplayTimer(); } diff --git a/dist/save/index.js b/dist/save/index.js index 5aee1c2..c271c54 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -9848,6 +9848,10 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { } return response; } + catch (error) { + core.debug(`Error uploading cache archive: ${error}`); + throw error; + } finally { uploadProgress.stopDisplayTimer(); }