mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-12-04 04:11:07 -05:00
Add error handling for failed uploads
This commit is contained in:
parent
2df79913f5
commit
bf08ee6b81
4 changed files with 16 additions and 0 deletions
4
dist/restore-only/index.js
vendored
4
dist/restore-only/index.js
vendored
|
@ -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
dist/restore/index.js
vendored
4
dist/restore/index.js
vendored
|
@ -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
dist/save-only/index.js
vendored
4
dist/save-only/index.js
vendored
|
@ -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
dist/save/index.js
vendored
4
dist/save/index.js
vendored
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue