mirror of
https://github.com/gradle/gradle-build-action
synced 2024-11-24 02:22:16 +00:00
Do not hide ReserveCacheError failures
When the target entry already exists, we are unable to save. Ensuring this situation is logged helps make the logs more understandable.
This commit is contained in:
parent
08d5b40ca5
commit
c349fa5b1f
1 changed files with 1 additions and 5 deletions
|
@ -99,11 +99,7 @@ export function handleCacheFailure(error: unknown, message: string): void {
|
|||
}
|
||||
if (error instanceof cache.ReserveCacheError) {
|
||||
// Reserve cache errors are expected if the artifact has been previously cached
|
||||
if (isCacheDebuggingEnabled()) {
|
||||
core.info(`${message}: ${error}`)
|
||||
} else {
|
||||
core.debug(`${message}: ${error}`)
|
||||
}
|
||||
} else {
|
||||
// Warn on all other errors
|
||||
core.warning(`${message}: ${error}`)
|
||||
|
|
Loading…
Reference in a new issue