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:44:58 -05:00
parent 70026432ac
commit 9bd8c978a8
1 changed files with 2 additions and 1 deletions

View File

@ -182,7 +182,8 @@ export class LinkCacheManager {
fs.unlinkSync(filePath);
cleaned++;
}
} catch {
} catch (error) {
console.warn(`Failed to process cache file "${filePath}": ${error.message}`);
// Remove corrupted files
fs.unlinkSync(filePath);
cleaned++;