fix(recording): abort prune on unreadable project

This commit is contained in:
wiiiii123
2026-05-22 20:08:41 +07:00
parent 1e35031f77
commit 9363ea2696
+2 -2
View File
@@ -82,11 +82,11 @@ async function loadSavedProjectMediaPaths() {
editor?: { webcam?: { sourcePath?: unknown } };
}>(await fs.readFile(projectPath, "utf-8"));
} catch (error) {
console.warn("[prune] Skipping unreadable project while pruning recordings", {
console.warn("[prune] Aborting recording prune because a saved project is unreadable", {
projectPath,
error,
});
return;
throw error;
}
const candidatePaths = [
rawProject.videoPath,