mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-27 01:59:02 +08: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
@ -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}`)
|
||||
}
|
||||
core.info(`${message}: ${error}`)
|
||||
} else {
|
||||
// Warn on all other errors
|
||||
core.warning(`${message}: ${error}`)
|
||||
|
Loading…
Reference in New Issue
Block a user