From 2b4ecc823e6bfb8916a45c4bf4c5670591a38f41 Mon Sep 17 00:00:00 2001 From: Dennis Benz <dennis.benz@uni-osnabrueck.de> Date: Fri, 2 May 2025 09:23:58 +0200 Subject: [PATCH] Show and log video upload errors (#1358) This patch always shows an error message to users if the upload fails and logs the error into the browser console. --- vueapp/common/upload.service.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vueapp/common/upload.service.js b/vueapp/common/upload.service.js index 4bdee856..157abed0 100644 --- a/vueapp/common/upload.service.js +++ b/vueapp/common/upload.service.js @@ -372,13 +372,13 @@ class UploadService { uploadDone(episode_id, terms, workflowId); } } catch (ex) { - console.log(ex); + console.error(ex); + onError(); /* Catch XML parse error. On Error Resume Next ;-) */ } }).catch(function (error) { - if (error.code === 'ERR_NETWORK') { - onError(); - } + console.error(error); + onError(); }); } -- GitLab