Skip to content

Commit c781182

Browse files
jstirnamanCopilot
andcommitted
Update cypress/support/link-cache.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9bd8c97 commit c781182

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cypress/support/link-cache.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ export class LinkCacheManager {
9898
try {
9999
fs.unlinkSync(cacheFile);
100100
this.stats.cleanups++;
101-
} catch {
102-
// Ignore cleanup errors
101+
} catch (cleanupError) {
102+
// Ignoring cleanup errors as they are non-critical, but logging for visibility
103+
console.warn(`Failed to clean up corrupted cache file: ${cleanupError.message}`);
103104
}
104105
this.stats.misses++;
105106
return null;

0 commit comments

Comments
 (0)