Update cypress/support/link-cache.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>pull/6264/head
parent
70026432ac
commit
9bd8c978a8
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue