mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-22 17:12:51 +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