diff --git a/src/cache-gradle-user-home.ts b/src/cache-gradle-user-home.ts index e81af97..f531eb9 100644 --- a/src/cache-gradle-user-home.ts +++ b/src/cache-gradle-user-home.ts @@ -135,9 +135,12 @@ export class GradleUserHomeCache extends AbstractCache { !(error instanceof Error) ) { throw error + } else if (error instanceof cache.ReserveCacheError) { + // These are expected if the artifact is already cached + this.debug(error.message) + } else { + core.warning(error.message) } - // TODO : Avoid warning for reserve cache error: this is expected - core.warning(error.message) } // Write the marker file that will stand in place of the original