Unverified Commit c349fa5b authored by Daz DeBoer's avatar Daz DeBoer
Browse files

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.
parent 08d5b40c
Loading
Loading
Loading
Loading
−4
Changes for src/cache-utils.ts: 0 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -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}`)