mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-27 01:02:11 -05: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) {
|
if (error instanceof cache.ReserveCacheError) {
|
||||||
// Reserve cache errors are expected if the artifact has been previously cached
|
// Reserve cache errors are expected if the artifact has been previously cached
|
||||||
if (isCacheDebuggingEnabled()) {
|
core.info(`${message}: ${error}`)
|
||||||
core.info(`${message}: ${error}`)
|
|
||||||
} else {
|
|
||||||
core.debug(`${message}: ${error}`)
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// Warn on all other errors
|
// Warn on all other errors
|
||||||
core.warning(`${message}: ${error}`)
|
core.warning(`${message}: ${error}`)
|
||||||
|
|
Loading…
Reference in a new issue