diff --git a/src/types/cache.ts b/src/types/cache.ts index e1213e150..3fa95c269 100644 --- a/src/types/cache.ts +++ b/src/types/cache.ts @@ -216,7 +216,11 @@ export default class Cache { } // Overwrite the real file with the temp file - await FsPoly.mv(tempFile, this.filePath); + try { + await FsPoly.mv(tempFile, this.filePath); + } catch { + return; + } this.hasChanged = false; this.saveMutex.cancel(); // cancel all waiting locks, we just saved });