Commit 84d807b
committed
fix(cache): handle cache removal errors gracefully
Wrap cacache.remove() calls in try/catch to prevent crashes when:
- Entry doesn't exist in persistent cache
- Cache directory is inaccessible (e.g., during test setup)
- File system permissions issues1 parent cb62e6f commit 84d807b
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
267 | 272 | | |
268 | 273 | | |
269 | 274 | | |
| |||
446 | 451 | | |
447 | 452 | | |
448 | 453 | | |
449 | | - | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
450 | 459 | | |
451 | 460 | | |
452 | 461 | | |
| |||
0 commit comments