From c78118216334828339a828ccfb89f3979a083409 Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Tue, 29 Jul 2025 10:45:22 -0500 Subject: [PATCH] Update cypress/support/link-cache.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- cypress/support/link-cache.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cypress/support/link-cache.js b/cypress/support/link-cache.js index e7df99d4e..1a54a6e41 100644 --- a/cypress/support/link-cache.js +++ b/cypress/support/link-cache.js @@ -98,8 +98,9 @@ export class LinkCacheManager { try { fs.unlinkSync(cacheFile); this.stats.cleanups++; - } catch { - // Ignore cleanup errors + } catch (cleanupError) { + // Ignoring cleanup errors as they are non-critical, but logging for visibility + console.warn(`Failed to clean up corrupted cache file: ${cleanupError.message}`); } this.stats.misses++; return null;