Améliorer la gestion des erreurs lors de la mise à jour du fichier vidéo dans la route de rendu

This commit is contained in:
2025-02-12 11:33:16 +01:00
parent ef09fdb1b4
commit aa571e5149

View File

@@ -321,12 +321,12 @@ router.post('/videos/render/:video_id', (req, res) => {
const videoFile = videoManager.createVideoWithList(project_id, pathList);
console.log('Video file:', videoFile);
try {
try {
videoManager.updateVideoFile(videoId, videoFile);
} catch (err) {
} catch (err) {
console.error('Error updating video file:', err);
res.status(500).json({ error: 'Error updating video file' });
}
}
}).catch(err => {
console.error('Error getting path list:', err);
res.status(500).json({ error: 'Error getting path list' });