Update cypress/support/link-cache.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/6264/head
Jason Stirnaman 2025-07-29 10:45:22 -05:00
parent 9bd8c978a8
commit c781182163
1 changed files with 3 additions and 2 deletions

View File

@ -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;