refactor: tighten upload and viewer contracts

This commit is contained in:
Tom Boullay
2026-05-13 17:50:26 +02:00
parent 30ff9826dc
commit f6ac71dad2
11 changed files with 108 additions and 86 deletions
+6 -1
View File
@@ -223,7 +223,12 @@ async function prepareDracoGlb(
}
}
} finally {
await rm(tmpFolder, { recursive: true, force: true }).catch(() => {})
await rm(tmpFolder, { recursive: true, force: true }).catch((err) => {
console.warn('[WARN] Blender temp cleanup failed', {
folderName,
error: getErrorMessage(err),
})
})
}
}