mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 16:12:56 +08:00
Add error handling for failed uploads
This commit is contained in:
parent
c6f1224d30
commit
ee1c07d0aa
3
packages/cache/src/internal/uploadUtils.ts
vendored
3
packages/cache/src/internal/uploadUtils.ts
vendored
@ -160,6 +160,9 @@ export async function uploadCacheArchiveSDK(
|
|||||||
}
|
}
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
} catch (error) {
|
||||||
|
core.debug(`Error uploading cache archive: ${error}`)
|
||||||
|
throw error
|
||||||
} finally {
|
} finally {
|
||||||
uploadProgress.stopDisplayTimer()
|
uploadProgress.stopDisplayTimer()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user