From aa571e5149a31de031253d6c3d396a456356c081 Mon Sep 17 00:00:00 2001 From: Kerboul Date: Wed, 12 Feb 2025 11:33:16 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9liorer=20la=20gestion=20des=20erreurs?= =?UTF-8?q?=20lors=20de=20la=20mise=20=C3=A0=20jour=20du=20fichier=20vid?= =?UTF-8?q?=C3=A9o=20dans=20la=20route=20de=20rendu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/videoRoutes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/videoRoutes.js b/routes/videoRoutes.js index a7c2f53..2ef8ec0 100644 --- a/routes/videoRoutes.js +++ b/routes/videoRoutes.js @@ -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' });